forked from extern/egroupware
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){
|
expose_onslide: function (gallery, index, slide){
|
||||||
// First let parent try
|
// First let parent try
|
||||||
this._super.apply(this, arguments);
|
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);
|
var nm = find_nextmatch(this);
|
||||||
if(nm)
|
if(nm)
|
||||||
{
|
{
|
||||||
@ -478,6 +475,13 @@ function expose (widget)
|
|||||||
{
|
{
|
||||||
indicator.animate({left: (gallery.container.width() / 2)-current.left});
|
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
|
// Check to see if we're near the end, or maybe some pagination
|
||||||
// would be good.
|
// would be good.
|
||||||
var total_count = nm.controller._grid.getTotalCount();
|
var total_count = nm.controller._grid.getTotalCount();
|
||||||
|
Loading…
Reference in New Issue
Block a user