Skip to content

Commit

Permalink
FIX: Cursor would stay on lightbox when hitting the back button
Browse files Browse the repository at this point in the history
  • Loading branch information
eviltrout committed Oct 10, 2014
1 parent 5754e8d commit bbbec13
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/assets/javascripts/discourse/routes/discourse_route.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bbbec13

Please sign in to comment.