Skip to content

Commit 2eedbf5

Browse files
committed
v2.8.2 bump and build
1 parent 4c9cfca commit 2eedbf5

File tree

10 files changed

+39
-17
lines changed

10 files changed

+39
-17
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ by [Lokesh Dhakar](http://www.lokeshdhakar.com)
3939

4040
## Changelog
4141

42-
### v2.8.2 - UNRELEASED
42+
### v2.8.2 - 2015-12-13
4343

4444
- [Add] npm support. ```npm install --save lightbox2```
4545
- [Add] Add option to disable vertical scrolling [#487](https://github.com/lokesh/lightbox2/pull/487) Thanks [blacksunshineCoding](https://github.com/blacksunshineCoding)

dist/css/lightbox.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ body:after {
44
display: none;
55
}
66

7+
body.lb-disable-scrolling {
8+
overflow: hidden;
9+
}
10+
711
.lightboxOverlay {
812
position: absolute;
913
top: 0;

dist/css/lightbox.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/lightbox-plus-jquery.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9210,7 +9210,7 @@ return jQuery;
92109210
}));
92119211

92129212
/*!
9213-
* Lightbox v2.8.1
9213+
* Lightbox v2.8.2
92149214
* by Lokesh Dhakar
92159215
*
92169216
* More info:
@@ -9259,7 +9259,8 @@ return jQuery;
92599259
positionFromTop: 50,
92609260
resizeDuration: 700,
92619261
showImageNumberLabel: true,
9262-
wrapAround: false
9262+
wrapAround: false,
9263+
disableScrolling: false
92639264
};
92649265

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

9410+
// Disable scrolling of the page while open
9411+
if (this.options.disableScrolling) {
9412+
$('body').addClass('lb-disable-scrolling');
9413+
}
9414+
94099415
this.changeImage(imageNumber);
94109416
};
94119417

@@ -9483,7 +9489,7 @@ return jQuery;
94839489
// Stretch overlay to fit the viewport
94849490
Lightbox.prototype.sizeOverlay = function() {
94859491
this.$overlay
9486-
.width($(window).width())
9492+
.width($(document).width())
94879493
.height($(document).height());
94889494
};
94899495

@@ -9649,6 +9655,9 @@ return jQuery;
96499655
$('select, object, embed').css({
96509656
visibility: 'visible'
96519657
});
9658+
if (this.options.disableScrolling) {
9659+
$('body').removeClass('lb-disable-scrolling');
9660+
}
96529661
};
96539662

96549663
return new Lightbox();

dist/js/lightbox-plus-jquery.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/lightbox-plus-jquery.min.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/lightbox.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Lightbox v2.8.1
2+
* Lightbox v2.8.2
33
* by Lokesh Dhakar
44
*
55
* More info:
@@ -48,7 +48,8 @@
4848
positionFromTop: 50,
4949
resizeDuration: 700,
5050
showImageNumberLabel: true,
51-
wrapAround: false
51+
wrapAround: false,
52+
disableScrolling: false
5253
};
5354

5455
Lightbox.prototype.option = function(options) {
@@ -195,6 +196,11 @@
195196
left: left + 'px'
196197
}).fadeIn(this.options.fadeDuration);
197198

199+
// Disable scrolling of the page while open
200+
if (this.options.disableScrolling) {
201+
$('body').addClass('lb-disable-scrolling');
202+
}
203+
198204
this.changeImage(imageNumber);
199205
};
200206

@@ -272,7 +278,7 @@
272278
// Stretch overlay to fit the viewport
273279
Lightbox.prototype.sizeOverlay = function() {
274280
this.$overlay
275-
.width($(window).width())
281+
.width($(document).width())
276282
.height($(document).height());
277283
};
278284

@@ -438,6 +444,9 @@
438444
$('select, object, embed').css({
439445
visibility: 'visible'
440446
});
447+
if (this.options.disableScrolling) {
448+
$('body').removeClass('lb-disable-scrolling');
449+
}
441450
};
442451

443452
return new Lightbox();

dist/js/lightbox.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/lightbox.min.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/js/lightbox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Lightbox v2.8.1
2+
* Lightbox v2.8.2
33
* by Lokesh Dhakar
44
*
55
* More info:

0 commit comments

Comments
 (0)