diff --git a/cms/static/js/base.js b/cms/static/js/base.js index 44636d9214..d2ac60c07d 100644 --- a/cms/static/js/base.js +++ b/cms/static/js/base.js @@ -429,7 +429,6 @@ function hideModal(e) { // of the editor. Users must press Cancel or Save to exit the editor. // module_edit adds and removes the "is-fixed" class. if (!$modalCover.hasClass("is-fixed")) { - $('.file-input').unbind('change', startUpload); $modal.hide(); $modalCover.hide(); } diff --git a/cms/templates/asset_index.html b/cms/templates/asset_index.html index 3d9ef598ef..bcab53b36f 100644 --- a/cms/templates/asset_index.html +++ b/cms/templates/asset_index.html @@ -74,6 +74,8 @@ }; var resetUploadModal = function () { + $('.file-input').unbind('change', startUpload); + // Reset modal so it no longer displays information about previously // completed uploads. var percentVal = '0%';