diff --git a/app/view/js/bolt.js b/app/view/js/bolt.js index 069aa852c24..181b1f4cc14 100644 --- a/app/view/js/bolt.js +++ b/app/view/js/bolt.js @@ -366,27 +366,8 @@ function bindFileUpload(key) { var progress = Math.round(100 * data._bitrateTimer.loaded / data.files[0].size); $('#progress-' + key).show().addClass('progress-striped active'); $('#progress-' + key + ' div.bar').css('width', progress+"%"); - }) - .bind('fileuploadsubmit', function (e, data) { - var that = this, - fileTypes = $('#field-' + key).attr('accept'); - - if( typeof fileTypes !== 'undefined' ) { - var pattern = new RegExp( "(\.|\/)(" + fileTypes + ")$", "gi" ); - $.each( data.files , function (index, file) { - if( !pattern.test(file.type) ) { - var message = "Oops! There was an error uploading the file. Make sure that the file type is correct." - + "\n\n(accept type was: " - + fileTypes + ")"; + }); - alert(message); - e.preventDefault(); - return false; - } - }); - } - }) - ; } @@ -709,7 +690,7 @@ var Stack = Backbone.Model.extend({ type = "other"; } - // We don't need 'files/' in the path. Accept intput with or without it, but strip + // We don't need 'files/' in the path. Accept input with or without it, but strip // it out here.. filename = filename.replace(/files\//ig, ''); @@ -1131,3 +1112,4 @@ function openVideo(url) { $('body').append(modal); } +