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
This commit is contained in:
Michael Terry
2017-11-21 11:16:48 -05:00
parent 7316002f28
commit 96c737d1cb

View File

@@ -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);