mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:18 +01:00
Some updates to pagination
- Revert part of previous commit, it made things seem slower.
This commit is contained in:
parent
8633eb416e
commit
21af57059d
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user