mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
BUGFIX: calling .blur() on the body element unfocus the browser window in IE10
This commit is contained in:
parent
7d5d5862c1
commit
cfeae239a8
1 changed files with 3 additions and 1 deletions
|
@ -54,7 +54,9 @@ Discourse.Route.reopenClass({
|
|||
if ($.magnificPopup && $.magnificPopup.instance) { $.magnificPopup.instance.close(); }
|
||||
|
||||
// Remove any link focus
|
||||
$(document.activeElement).blur();
|
||||
// NOTE: the '.not("body")' is here to prevent a bug in IE10 on Win7
|
||||
// cf. https://stackoverflow.com/questions/5657371/ie9-window-loses-focus-due-to-jquery-mobile
|
||||
$(document.activeElement).not("body").blur();
|
||||
|
||||
Discourse.set('notifyCount',0);
|
||||
$('#discourse-modal').modal('hide');
|
||||
|
|
Loading…
Reference in a new issue