Commit 96c737d1 by Michael Terry

Fix focus loss when bookmarking a page in IE

In IE, when a user presses the bookmark/remove-bookmark button,
the focus was lost on that button because we set disabled=true
while we do the operation. Set the focus back when we are done.

LEARNER-2896
parent 7316002f
......@@ -58,6 +58,7 @@
},
complete: function() {
view.$el.prop('disabled', false);
view.$el.focus();
}
});
},
......@@ -78,6 +79,7 @@
},
complete: function() {
view.$el.prop('disabled', false);
view.$el.focus();
}
});
},
......@@ -105,7 +107,7 @@
}
this.messageView.showMessage(errorMsg);
// Hide message automatically after some interval
// Hide message automatically after some interval
setTimeout(_.bind(function() {
this.messageView.hideMessage();
}, this), this.showBannerInterval);
......
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