diff options
-rw-r--r-- | www/js/shows.js | 4 | ||||
-rw-r--r-- | www/js/utils.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/www/js/shows.js b/www/js/shows.js index cbf4d73..a1119c3 100644 --- a/www/js/shows.js +++ b/www/js/shows.js @@ -98,9 +98,9 @@ function shows_importCart(cart) { $('#shows-upload div.modal-header h3').text("Datei auswählen...") $('#shows-upload div.modal-body').empty().append(form).css("background-image", "url('/img/dz-backdrop.png')"); $('#shows-upload-confirm').attr('disabled','disabled').unbind('click'); - var dz = form.dropzone({ url: "/rd-bin/rdxport.cgi", prallelUploads: 1, maxFilesize: 2048, paramName: 'FILENAME', + var dz = form.dropzone({ url: "/rd-bin/rdxport.cgi", parallelUploads: 1, maxFilesize: 2048, paramName: 'FILENAME', uploadMultiple: false, clickable: true, createImageThumbnails: false, - acceptedFiles: ".flac,.wav,.ogg,.mp3", autoProcessQueue: false, init: function() { + acceptedFiles: ".flac,.wav,.ogg,.mp3,.m4a,.aac", autoProcessQueue: false, init: function() { this.on("addedfile", function(file) { shows_importFileAdded(this, file, cart); }); this.on("error", function(file, msg) { shows_importFileSelectError(this, file, msg); }); }}); diff --git a/www/js/utils.js b/www/js/utils.js index 0237594..befd08b 100644 --- a/www/js/utils.js +++ b/www/js/utils.js @@ -16,7 +16,7 @@ Number.prototype.pad = function(size) { } var weekday = new Array(7); -weekday[0] = "Sonntag"; +weekday[0] = "Sonntag"; weekday[1] = "Montag"; weekday[2] = "Dienstag"; weekday[3] = "Mittwoch"; @@ -48,7 +48,7 @@ function msToTimeString(time) { time %= 60000; var s = Number(Math.floor(time / 1000)); var hs = Number(Math.floor((time % 1000)/100)); - + return h + ':' + m.pad(2) + ':' + s.pad(2) + '.' + hs; } |