Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions jquery.modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@

block: function() {
this.$elm.trigger($.modal.BEFORE_BLOCK, [this._ctx()]);
this.$body.css('overflow','hidden');
if (!this.options.bodyScroll)
this.$body.css('overflow','hidden');
this.$blocker = $('<div class="' + this.options.blockerClass + ' blocker current"></div>').appendTo(this.$body);
selectCurrent();
if(this.options.doFade) {
Expand All @@ -130,7 +131,7 @@
this.$blocker.remove();
this.$blocker = null;
selectCurrent();
if (!$.modal.isActive())
if (!$.modal.isActive() && !this.options.bodyScroll)
this.$body.css('overflow','');
}
},
Expand Down Expand Up @@ -211,7 +212,8 @@
showSpinner: true,
showClose: true,
fadeDuration: null, // Number of milliseconds the fade animation takes.
fadeDelay: 1.0 // Point during the overlay's fade-in that the modal begins to fade in (.5 = 50%, 1.5 = 150%, etc.)
fadeDelay: 1.0, // Point during the overlay's fade-in that the modal begins to fade in (.5 = 50%, 1.5 = 150%, etc.)
bodyScroll: false // Keeps body overflow visible, body scrolling enabled, is set to true. Default is false.
};

// Event constants
Expand Down