Commit c1d63919 by Christina Roberts

Merge pull request #1089 from edx/christina/basejs_bug

Moving unregistration of change listener into asset_index.html.

Build passed when ran manually (automatic one is running now).
parents 88cae543 9b076464
......@@ -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%';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment