Moving unregistration of change listener into asset_index.html.
Fixes broken integration test on master.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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%';
|
||||
|
||||
Reference in New Issue
Block a user