Skip to content

Commit

Permalink
v2.8.2 bump and build
Browse files Browse the repository at this point in the history
  • Loading branch information
lokesh committed Dec 14, 2015
1 parent 4c9cfca commit 2eedbf5
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 17 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ by [Lokesh Dhakar](http://www.lokeshdhakar.com)

## Changelog

This comment has been minimized.

Copy link
@hiepngo64

hiepngo64 Apr 4, 2016

Leave a line note


### v2.8.2 - UNRELEASED
### v2.8.2 - 2015-12-13

- [Add] npm support. ```npm install --save lightbox2```
- [Add] Add option to disable vertical scrolling [#487](https://github.com/lokesh/lightbox2/pull/487) Thanks [blacksunshineCoding](https://github.com/blacksunshineCoding)
Expand Down
4 changes: 4 additions & 0 deletions dist/css/lightbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ body:after {
display: none;
}

body.lb-disable-scrolling {
overflow: hidden;
}

.lightboxOverlay {
position: absolute;
top: 0;
Expand Down
2 changes: 1 addition & 1 deletion dist/css/lightbox.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 12 additions & 3 deletions dist/js/lightbox-plus-jquery.js
Original file line number Diff line number Diff line change
Expand Up @@ -9210,7 +9210,7 @@ return jQuery;
}));

/*!
* Lightbox v2.8.1
* Lightbox v2.8.2
* by Lokesh Dhakar
*
* More info:
Expand Down Expand Up @@ -9259,7 +9259,8 @@ return jQuery;
positionFromTop: 50,
resizeDuration: 700,
showImageNumberLabel: true,
wrapAround: false
wrapAround: false,
disableScrolling: false
};

Lightbox.prototype.option = function(options) {
Expand Down Expand Up @@ -9406,6 +9407,11 @@ return jQuery;
left: left + 'px'
}).fadeIn(this.options.fadeDuration);

// Disable scrolling of the page while open
if (this.options.disableScrolling) {
$('body').addClass('lb-disable-scrolling');
}

this.changeImage(imageNumber);
};

Expand Down Expand Up @@ -9483,7 +9489,7 @@ return jQuery;
// Stretch overlay to fit the viewport
Lightbox.prototype.sizeOverlay = function() {
this.$overlay
.width($(window).width())
.width($(document).width())
.height($(document).height());
};

Expand Down Expand Up @@ -9649,6 +9655,9 @@ return jQuery;
$('select, object, embed').css({
visibility: 'visible'
});
if (this.options.disableScrolling) {
$('body').removeClass('lb-disable-scrolling');
}
};

return new Lightbox();
Expand Down
8 changes: 4 additions & 4 deletions dist/js/lightbox-plus-jquery.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/lightbox-plus-jquery.min.map

Large diffs are not rendered by default.

15 changes: 12 additions & 3 deletions dist/js/lightbox.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Lightbox v2.8.1
* Lightbox v2.8.2
* by Lokesh Dhakar
*
* More info:
Expand Down Expand Up @@ -48,7 +48,8 @@
positionFromTop: 50,
resizeDuration: 700,
showImageNumberLabel: true,
wrapAround: false
wrapAround: false,
disableScrolling: false
};

Lightbox.prototype.option = function(options) {
Expand Down Expand Up @@ -195,6 +196,11 @@
left: left + 'px'
}).fadeIn(this.options.fadeDuration);

// Disable scrolling of the page while open
if (this.options.disableScrolling) {
$('body').addClass('lb-disable-scrolling');
}

this.changeImage(imageNumber);
};

Expand Down Expand Up @@ -272,7 +278,7 @@
// Stretch overlay to fit the viewport
Lightbox.prototype.sizeOverlay = function() {
this.$overlay
.width($(window).width())
.width($(document).width())
.height($(document).height());
};

Expand Down Expand Up @@ -438,6 +444,9 @@
$('select, object, embed').css({
visibility: 'visible'
});
if (this.options.disableScrolling) {
$('body').removeClass('lb-disable-scrolling');
}
};

return new Lightbox();
Expand Down
4 changes: 2 additions & 2 deletions dist/js/lightbox.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/lightbox.min.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/js/lightbox.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Lightbox v2.8.1
* Lightbox v2.8.2
* by Lokesh Dhakar
*
* More info:
Expand Down

0 comments on commit 2eedbf5

Please sign in to comment.