Open GoogleCodeExporter opened 9 years ago
I made a progress and I modified the previousPage function like this:
previousPage: function(dontPause, bypassHistory) {
var page = this.getCurrentPage();
if (page > 0) {
var startIndex = page * this.numThumbs;
var prevPage = startIndex - this.numThumbs;
this.gotoIndex(prevPage, dontPause, bypassHistory);
}
if (page == 0) {
$(this).hide();
var ngts = gallery.prevGal;
ngts.show();
var startIndex = (ngts.getNumPages()-1) * this.numThumbs;
var prevPage = startIndex + this.numThumbs;
ngts.gotoIndex(prevPage, dontPause, bypassHistory);
//$('#thumbs'+nextThumbId).show();
}
return this;
}
The problem is that the thumb is rendered fine but the first page of the thumb
is displayed and then after a short period of time (some miliseconds) jumps to
the last page.
Any idea is welcome
P.S. Guys, I`m a JQuery newbie :)
Original comment by calin.cr...@gmail.com
on 17 Apr 2012 at 6:49
Original issue reported on code.google.com by
calin.cr...@gmail.com
on 17 Apr 2012 at 1:53