From 8a5d5038433266e082b1157fd2d55306c5382abb Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 3 Sep 2012 04:11:09 +0400 Subject: [PATCH] minor tweeks... Signed-off-by: Alex A. Naanou --- ui/gallery-prototype.js | 35 +++++++++++++++++++++++------------ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/ui/gallery-prototype.js b/ui/gallery-prototype.js index 7851ca27..7b7592ee 100755 --- a/ui/gallery-prototype.js +++ b/ui/gallery-prototype.js @@ -1038,19 +1038,30 @@ function setupEvents(){ // persistence... $(window).unload(ImageGrid.saveState) $(document) - // main modifier events... - .on('shiftImageUp shiftImageDown reverseImageOrder '+ - 'reverseRibbons shiftImageUpNewRibbon shiftImageDownNewRibbon', - function(){ - updated = true - }) + .on([ + // main modifier events... + 'shiftImageUp', + 'shiftImageDown', + 'shiftImageUpNewRibbon', + 'shiftImageDownNewRibbon', + 'reverseImageOrder', + 'reverseRibbons' + ].join(' '), + function(){ + updated = true + }) /* - // navigation events... - .on('nextImage prevImage nextScreenImages prevScreenImages '+ - 'focusAboveRibbon focusBelowRibbon', - function(){ - updated = true - }) + .on([ + // navigation events... + 'nextImage prevImage', + 'nextScreenImages', + 'prevScreenImages', + 'focusAboveRibbon', + 'focusBelowRibbon' + ].join(' '), + function(){ + updated = true + }) */ // save things if updated within a minute... // XXX this gets very slow when saving a large data dump...