diff --git a/ui/gallery-prototype.js b/ui/gallery-prototype.js index ff535b99..eb33dd59 100755 --- a/ui/gallery-prototype.js +++ b/ui/gallery-prototype.js @@ -1116,7 +1116,6 @@ function reverseRibbons(){ // NOTE: this will only align three ribbons... function sortImages(){ $('.ribbon').sortChildren(cmpImageOrder) - // compensate for offset cange... $('.current.image').click() } @@ -1132,6 +1131,14 @@ function resortImagesVia(cmp){ } +// reverse the order of images in all ribbons by reversing their id attr +// and resorting... +// NOTE: this is like flipping the field horizontally... +function reverseImageOrder(){ + resortImagesVia(function(a, b){return cmpImageOrder(b, a)}) +} + + // sort images py their full path... // XXX this should use a normalized path... function sortImagesByPath(){ @@ -1143,14 +1150,6 @@ function sortImagesByPath(){ } -// reverse the order of images in all ribbons by reversing their id attr -// and resorting... -// NOTE: this is like flipping the field horizontally... -function reverseImageOrder(){ - resortImagesVia(function(a, b){return cmpImageOrder(b, a)}) -} - - // XXX group images in ribbon and merge down/up // // grouping will make the images in a ribbon adjacent to each