mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-30 07:53:57 -04:00
FIX: Cursor would stay on lightbox when hitting the back button
This commit is contained in:
parent
5754e8dd0f
commit
bbbec13606
1 changed files with 4 additions and 1 deletions
|
@ -100,7 +100,10 @@ Discourse.Route.reopenClass({
|
||||||
$('header ul.icons li').removeClass('active');
|
$('header ul.icons li').removeClass('active');
|
||||||
$('[data-toggle="dropdown"]').parent().removeClass('open');
|
$('[data-toggle="dropdown"]').parent().removeClass('open');
|
||||||
// close the lightbox
|
// close the lightbox
|
||||||
if ($.magnificPopup && $.magnificPopup.instance) { $.magnificPopup.instance.close(); }
|
if ($.magnificPopup && $.magnificPopup.instance) {
|
||||||
|
$.magnificPopup.instance.close();
|
||||||
|
$('body').removeClass('mfp-zoom-out-cur');
|
||||||
|
}
|
||||||
|
|
||||||
// Remove any link focus
|
// Remove any link focus
|
||||||
// NOTE: the '.not("body")' is here to prevent a bug in IE10 on Win7
|
// NOTE: the '.not("body")' is here to prevent a bug in IE10 on Win7
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue