mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
more fixes and tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
13c81f276e
commit
405a3886b4
@ -763,10 +763,11 @@ function(list, options){
|
|||||||
: options.to_top_button,
|
: options.to_top_button,
|
||||||
function(p, e){
|
function(p, e){
|
||||||
var d = move(p, -dialog.__list[id].length)
|
var d = move(p, -dialog.__list[id].length)
|
||||||
d
|
d != null
|
||||||
&& e.prevAll().eq(Math.abs(d+1)).before(e)
|
//&& e.prevAll().eq(Math.abs(d+1)).before(e)
|
||||||
// XXX hackish...
|
&& e.prevAll().last().before(e)
|
||||||
&& dialog
|
&& dialog
|
||||||
|
// XXX hackish...
|
||||||
.updateItemNumbers()
|
.updateItemNumbers()
|
||||||
.trigger('to_top_button', p, e)
|
.trigger('to_top_button', p, e)
|
||||||
}],
|
}],
|
||||||
@ -777,10 +778,11 @@ function(list, options){
|
|||||||
: options.to_bottom_button,
|
: options.to_bottom_button,
|
||||||
function(p, e){
|
function(p, e){
|
||||||
var d = move(p, dialog.__list[id].length)
|
var d = move(p, dialog.__list[id].length)
|
||||||
d
|
d != null
|
||||||
&& e.nextAll().eq(Math.abs(d-1)).after(e)
|
//&& e.nextAll().eq(Math.abs(d-1)).after(e)
|
||||||
// XXX hackish...
|
&& e.nextAll().last().after(e)
|
||||||
&& dialog
|
&& dialog
|
||||||
|
// XXX hackish...
|
||||||
.updateItemNumbers()
|
.updateItemNumbers()
|
||||||
.trigger('to_bottom_button', p, e)
|
.trigger('to_bottom_button', p, e)
|
||||||
}],
|
}],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user