mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-30 19:00:09 +00:00
upgraded to .on(...) event handler binding...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
98de584879
commit
f574e9d286
@ -754,7 +754,6 @@ function clickAfterTransitionsDone(img){
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// find an image object after which to position image ID...
|
// find an image object after which to position image ID...
|
||||||
// used for two main tasks:
|
// used for two main tasks:
|
||||||
// - positioning promoted/demoted images
|
// - positioning promoted/demoted images
|
||||||
@ -781,7 +780,6 @@ function getImageBefore_lin(id, ribbon, get_order){
|
|||||||
return prev
|
return prev
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// generic binery search for element just before the id...
|
// generic binery search for element just before the id...
|
||||||
// NOTE: if id is in lst, this will return the element just before it.
|
// NOTE: if id is in lst, this will return the element just before it.
|
||||||
// NOTE: lst must be sorted.
|
// NOTE: lst must be sorted.
|
||||||
@ -1041,14 +1039,14 @@ function setupEvents(){
|
|||||||
$(window).unload(ImageGrid.saveState)
|
$(window).unload(ImageGrid.saveState)
|
||||||
$(document)
|
$(document)
|
||||||
// main modifier events...
|
// main modifier events...
|
||||||
.bind('shiftImageUp shiftImageDown reverseImageOrder '+
|
.on('shiftImageUp shiftImageDown reverseImageOrder '+
|
||||||
'reverseRibbons shiftImageUpNewRibbon shiftImageDownNewRibbon',
|
'reverseRibbons shiftImageUpNewRibbon shiftImageDownNewRibbon',
|
||||||
function(){
|
function(){
|
||||||
updated = true
|
updated = true
|
||||||
})
|
})
|
||||||
/*
|
/*
|
||||||
// navigation events...
|
// navigation events...
|
||||||
.bind('nextImage prevImage nextScreenImages prevScreenImages '+
|
.on('nextImage prevImage nextScreenImages prevScreenImages '+
|
||||||
'focusAboveRibbon focusBelowRibbon',
|
'focusAboveRibbon focusBelowRibbon',
|
||||||
function(){
|
function(){
|
||||||
updated = true
|
updated = true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user