Skip to content

Commit

Permalink
Merge pull request #200 from bltavares/patch-1
Browse files Browse the repository at this point in the history
Fix #199
  • Loading branch information
billinghamj committed Mar 26, 2013
2 parents 0b88576 + e43b297 commit 0a2b11c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/photoswipe.class.js
Expand Up @@ -547,6 +547,7 @@
this.carousel = null; this.carousel = null;


Util.DOM.removeClass(window.document.body, PhotoSwipe.CssClasses.activeBody); Util.DOM.removeClass(window.document.body, PhotoSwipe.CssClasses.activeBody);
Util.DOM.removeClass(window.document.getElementsByTagName("html")[0], PhotoSwipe.CssClasses.activeBody);


this.documentOverlay.dispose(); this.documentOverlay.dispose();
this.documentOverlay = null; this.documentOverlay = null;
Expand Down Expand Up @@ -821,6 +822,7 @@
var el = (this.settings.target === window) ? window.document.body : this.settings.target; var el = (this.settings.target === window) ? window.document.body : this.settings.target;


Util.DOM.removeClass(el, PhotoSwipe.CssClasses.buildingBody); Util.DOM.removeClass(el, PhotoSwipe.CssClasses.buildingBody);
Util.DOM.addClass(window.document.getElementsByTagName("html")[0], PhotoSwipe.CssClasses.activeBody);
Util.DOM.addClass(el, PhotoSwipe.CssClasses.activeBody); Util.DOM.addClass(el, PhotoSwipe.CssClasses.activeBody);


this.addEventHandlers(); this.addEventHandlers();
Expand Down

0 comments on commit 0a2b11c

Please sign in to comment.