From 21af57059d0d00a7176d2e336cdd9ea6a5d1b71c Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 29 Jan 2015 18:07:41 +0000 Subject: [PATCH] Some updates to pagination - Revert part of previous commit, it made things seem slower. --- etemplate/js/expose.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/etemplate/js/expose.js b/etemplate/js/expose.js index edcd5f4268..126be9b66a 100644 --- a/etemplate/js/expose.js +++ b/etemplate/js/expose.js @@ -465,9 +465,6 @@ function expose (widget) expose_onslide: function (gallery, index, slide){ // First let parent try this._super.apply(this, arguments); - }, - expose_onslideend: function (gallery, index, slide){ - // Check to see if we're in a nextmatch, do magic var nm = find_nextmatch(this); if(nm) { @@ -478,6 +475,13 @@ function expose (widget) { indicator.animate({left: (gallery.container.width() / 2)-current.left}); } + } + }, + expose_onslideend: function (gallery, index, slide){ + // Check to see if we're in a nextmatch, do magic + var nm = find_nextmatch(this); + if(nm) + { // Check to see if we're near the end, or maybe some pagination // would be good. var total_count = nm.controller._grid.getTotalCount();