summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js')
-rw-r--r--www/js/importer.js6
-rw-r--r--www/js/jingles.js2
2 files changed, 7 insertions, 1 deletions
diff --git a/www/js/importer.js b/www/js/importer.js
index 9576768..3776aad 100644
--- a/www/js/importer.js
+++ b/www/js/importer.js
@@ -138,6 +138,7 @@ Rdxport.Importer.prototype.resetModal = function() {
$('.modal-body #sourceUri', this.$el).val('');
$('#uploadModal-confirm', this.$el).attr('disabled','disabled').off('click');
$('form input[type="file"]', this.$el).removeAttr('multiple');
+ $('form ul', self.$el).empty();
};
Rdxport.Importer.prototype.openModal = function(group, groupView, cartNumber, useMetadata, multifiles) {
@@ -182,8 +183,13 @@ Rdxport.Importer.prototype.openModal = function(group, groupView, cartNumber, us
if (multifiles && files.length > 1) {
$('div.modal-header h4', self.$el).text(files.length + ' files.');
+ var $formUl = $('form ul', self.$el).empty();
+ $.each(files, function(index, file) {
+ //$formUl.append($('<li>').text(file.name));
+ });
} else {
$('div.modal-header h4', self.$el).text(files[0].name);
+ $('form ul', self.$el).empty();
}
$('div.modal-body .drop', self.$el).css("background-image", "url('/img/audio_file.png')");
$('.modal-body #sourceUri', self.$el).val('');
diff --git a/www/js/jingles.js b/www/js/jingles.js
index ffaafcd..78c2675 100644
--- a/www/js/jingles.js
+++ b/www/js/jingles.js
@@ -272,7 +272,7 @@ Rdxport.JingleCutView.prototype.render = function() {
.append($('<td>').text(this.model.name))
.append($('<td>').text(this.model.description))
.append($('<td>').text(msToTimeString(this.model.length)))
- .append($('<td>').text(format_datetime(this.model.originDatetime)))
+ .append($('<td>').text(format_datetime(this.model.lastPlayDatetime)))
.append(
$('<td>').addClass('text-center')
.append(moveButton)