Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2012-08-14 20:13:36 +04:00
parent 63708b60f4
commit e49ea1567c

View File

@ -1116,7 +1116,6 @@ function reverseRibbons(){
// NOTE: this will only align three ribbons... // NOTE: this will only align three ribbons...
function sortImages(){ function sortImages(){
$('.ribbon').sortChildren(cmpImageOrder) $('.ribbon').sortChildren(cmpImageOrder)
// compensate for offset cange... // compensate for offset cange...
$('.current.image').click() $('.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... // sort images py their full path...
// XXX this should use a normalized path... // XXX this should use a normalized path...
function sortImagesByPath(){ 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 // XXX group images in ribbon and merge down/up
// //
// grouping will make the images in a ribbon adjacent to each // grouping will make the images in a ribbon adjacent to each