Skip to content

Commit 6214044

Browse files
committed
Increment currentPage by 1 when currentPage is 0
Thanks to @bmsantiago
1 parent 8def820 commit 6214044

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

js/jquery.grid.thumbnailer.js

+3
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@
125125
_super = this;
126126

127127
this.$el.find('li').remove();
128+
129+
if (this.currentPage == 0)
130+
this.currentPage++;
128131

129132
// if new imageArray length is less than cureent page, set the currentPage the last page
130133
if(this.currentPage > this.imagesData.imagesArray.length) {

0 commit comments

Comments
 (0)