FIX: Cursor would stay on lightbox when hitting the back button

This commit is contained in:
Robin Ward 2014-10-10 13:09:05 -04:00
parent 5754e8dd0f
commit bbbec13606
1 changed files with 4 additions and 1 deletions

View File

@ -100,7 +100,10 @@ Discourse.Route.reopenClass({
$('header ul.icons li').removeClass('active');
$('[data-toggle="dropdown"]').parent().removeClass('open');
// 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
// NOTE: the '.not("body")' is here to prevent a bug in IE10 on Win7