Skip to content
This repository has been archived by the owner on Apr 15, 2021. It is now read-only.

Commit

Permalink
v1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbitron committed Oct 4, 2016
1 parent 0d15b1e commit 047786c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
*** Nivo Lightbox Changelog ***

2016.10.04 - version 1.3.1
* [New] Added Gulpfile and minified JS + CSS
* [Changed] Moved nivo-lightbox.min.js to "dist" folder
* [Fixed] Version header info

2016.10.04 - version 1.3.0
* [New] Added `beforePrev` and `beforeNext` callbacks to allow custom transitions
* [New] Added `clickImgToClose` setting
Expand Down
4 changes: 2 additions & 2 deletions nivo-lightbox.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Nivo Lightbox v1.2.0
/*!
* Nivo Lightbox v1.3.1
* http://dev7studios.com/nivo-lightbox
*
* Copyright 2013, Dev7studios
Expand Down
8 changes: 4 additions & 4 deletions nivo-lightbox.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Nivo Lightbox v1.2.0
* Nivo Lightbox v1.3.1
* http://dev7studios.com/nivo-lightbox
*
* Copyright 2013, Dev7studios
Expand Down Expand Up @@ -103,7 +103,7 @@
currentLink = galleryItems.eq(index - 1);
if(!$(currentLink).length) currentLink = galleryItems.last();
$.when($this.options.beforePrev.call(this, [ currentLink ])).done(function(){
$this.processContent(content, currentLink);
$this.processContent(content, currentLink);
$this.options.onPrev.call(this, [ currentLink ]);
});
});
Expand All @@ -115,7 +115,7 @@
currentLink = galleryItems.eq(index + 1);
if(!$(currentLink).length) currentLink = galleryItems.first();
$.when($this.options.beforeNext.call(this, [ currentLink ])).done(function(){
$this.processContent(content, currentLink);
$this.processContent(content, currentLink);
$this.options.onNext.call(this, [ currentLink ]);
});
});
Expand Down Expand Up @@ -354,7 +354,7 @@
}
});
}

close.on('click', function(e){
e.preventDefault();
$this.destructLightbox();
Expand Down

0 comments on commit 047786c

Please sign in to comment.