From 9b076464f4b739bf89c91e6c4f43c7537599a3bc Mon Sep 17 00:00:00 2001 From: cahrens Date: Mon, 23 Sep 2013 10:25:06 -0400 Subject: [PATCH] Moving unregistration of change listener into asset_index.html. Fixes broken integration test on master. --- cms/static/js/base.js | 1 - cms/templates/asset_index.html | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) 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%';