Skip to content

Commit

Permalink
Version 1.1.3 release
Browse files Browse the repository at this point in the history
  • Loading branch information
sachinchoolur committed Sep 16, 2014
1 parent e88b497 commit 7f38c08
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
12 changes: 7 additions & 5 deletions demo/lightGallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -582,9 +582,9 @@
if (settings.loop) {
index = 0;
$this.slide(index);
} else if (settings.mode === 'fade' && settings.thumbnail === true && $children.length > 1) {
} else if (settings.thumbnail === true && $children.length > 1) {
$thumb_cont.addClass('open');
} else if (settings.mode === 'slide' && settings.thumbnail === true && $children.length > 1) {
} else {
$slide.eq(index).find('.object').addClass('rightEnd');
setTimeout(function() {
$slide.find('.object').removeClass('rightEnd');
Expand All @@ -604,9 +604,9 @@
if (settings.loop) {
index = $children.length - 1;
$this.slide(index);
} else if (settings.mode === 'fade' && settings.thumbnail === true && $children.length > 1) {
} else if (settings.thumbnail === true && $children.length > 1) {
$thumb_cont.addClass('open');
} else if (settings.mode === 'slide' && settings.thumbnail === true && $children.length > 1) {
} else{
$slide.eq(index).find('.object').addClass('leftEnd');
setTimeout(function() {
$slide.find('.object').removeClass('leftEnd');
Expand Down Expand Up @@ -716,7 +716,9 @@
}
prevIndex = index;
lightGalleryOn === false ? settings.onOpen.call(this, plugin) : settings.onSlideAfter.call(this, plugin);
lightGalleryOn = true;
setTimeout(function() {
lightGalleryOn = true;
});
usingThumb = false;
if (settings.counter) {
$("#lightGallery_counter_current").text(index + 1);
Expand Down
Loading

0 comments on commit 7f38c08

Please sign in to comment.