Skip to content

Commit

Permalink
Version 1.2.18 release
Browse files Browse the repository at this point in the history
Fixed hash plugin event unbind issue.. Option to get captions from alt or title tags..
  • Loading branch information
sachinchoolur committed Apr 13, 2016
1 parent dd59bff commit 1524c0c
Show file tree
Hide file tree
Showing 27 changed files with 64 additions and 44 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lightgallery",
"version": "1.2.17",
"version": "1.2.18",
"description": "A lightweight, customizable, modular, responsive, lightbox gallery plugin for jQuery.",
"main": [
"dist/js/lightgallery.min.js",
Expand Down
2 changes: 1 addition & 1 deletion dist/css/lg-fb-comment-box.css

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

2 changes: 1 addition & 1 deletion dist/css/lg-transitions.css

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

4 changes: 3 additions & 1 deletion dist/css/lightgallery.css

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

2 changes: 1 addition & 1 deletion dist/js/lg-autoplay.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! lightgallery - v1.2.17 - 2016-04-06
/*! lightgallery - v1.2.18 - 2016-04-13
* http://sachinchoolur.github.io/lightGallery/
* Copyright (c) 2016 Sachin N; Licensed Apache 2.0 */
/**
Expand Down
2 changes: 1 addition & 1 deletion dist/js/lg-autoplay.min.js

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

2 changes: 1 addition & 1 deletion dist/js/lg-fullscreen.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! lightgallery - v1.2.17 - 2016-04-06
/*! lightgallery - v1.2.18 - 2016-04-13
* http://sachinchoolur.github.io/lightGallery/
* Copyright (c) 2016 Sachin N; Licensed Apache 2.0 */
(function($, window, document, undefined) {
Expand Down
2 changes: 1 addition & 1 deletion dist/js/lg-fullscreen.min.js

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

10 changes: 6 additions & 4 deletions dist/js/lg-hash.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! lightgallery - v1.2.17 - 2016-04-06
/*! lightgallery - v1.2.18 - 2016-04-13
* http://sachinchoolur.github.io/lightGallery/
* Copyright (c) 2016 Sachin N; Licensed Apache 2.0 */
(function($, window, document, undefined) {
Expand Down Expand Up @@ -33,13 +33,13 @@
});

// Listen hash change and change the slide according to slide value
$(window).on('hashchange', function() {
$(window).on('hashchange.lg.hash', function() {
_hash = window.location.hash;
var _idx = parseInt(_hash.split('&slide=')[1], 10);

// it galleryId doesn't exist in the url close the gallery
if ((_hash.indexOf('lg=' + _this.core.s.galleryId) > -1)) {
_this.core.slide(_idx);
_this.core.slide(_idx, false, false);
} else if (_this.core.lGalleryOn) {
_this.core.destroy();
}
Expand All @@ -64,8 +64,10 @@
}
}

this.core.$el.off('.lg.hash');

};

$.fn.lightGallery.modules.hash = Hash;

})(jQuery, window, document);
})(jQuery, window, document);
4 changes: 2 additions & 2 deletions dist/js/lg-hash.min.js

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

2 changes: 1 addition & 1 deletion dist/js/lg-pager.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! lightgallery - v1.2.17 - 2016-04-06
/*! lightgallery - v1.2.18 - 2016-04-13
* http://sachinchoolur.github.io/lightGallery/
* Copyright (c) 2016 Sachin N; Licensed Apache 2.0 */
(function($, window, document, undefined) {
Expand Down
2 changes: 1 addition & 1 deletion dist/js/lg-pager.min.js

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

2 changes: 1 addition & 1 deletion dist/js/lg-thumbnail.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! lightgallery - v1.2.17 - 2016-04-06
/*! lightgallery - v1.2.18 - 2016-04-13
* http://sachinchoolur.github.io/lightGallery/
* Copyright (c) 2016 Sachin N; Licensed Apache 2.0 */
(function($, window, document, undefined) {
Expand Down
2 changes: 1 addition & 1 deletion dist/js/lg-thumbnail.min.js

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

2 changes: 1 addition & 1 deletion dist/js/lg-video.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! lightgallery - v1.2.17 - 2016-04-06
/*! lightgallery - v1.2.18 - 2016-04-13
* http://sachinchoolur.github.io/lightGallery/
* Copyright (c) 2016 Sachin N; Licensed Apache 2.0 */
(function($, window, document, undefined) {
Expand Down
Loading

0 comments on commit 1524c0c

Please sign in to comment.