diff --git a/vendor/assets/javascripts/jquery.modal.js b/vendor/assets/javascripts/jquery.modal.js index b1ab29a..5f3faf5 100644 --- a/vendor/assets/javascripts/jquery.modal.js +++ b/vendor/assets/javascripts/jquery.modal.js @@ -102,6 +102,7 @@ }, show: function() { + $('body').css('overflow', 'hidden'); this.$elm.trigger($.modal.BEFORE_OPEN, [this._ctx()]); if (this.options.showClose) { this.closeButton = $('' + this.options.closeText + ''); @@ -118,6 +119,7 @@ }, hide: function() { + $('body').css('overflow', 'auto'); this.$elm.trigger($.modal.BEFORE_CLOSE, [this._ctx()]); if (this.closeButton) this.closeButton.remove(); this.$elm.removeClass('current');