mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-11-01 20:00:10 +00:00
...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
63708b60f4
commit
e49ea1567c
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user