mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
added .reverseRibbons() action...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
29c9fa8ed5
commit
84da434226
@ -898,6 +898,10 @@ module.DataPrototype = {
|
||||
return this
|
||||
},
|
||||
|
||||
reverseRibbons: function(){
|
||||
this.ribbon_order.reverse()
|
||||
},
|
||||
|
||||
// Shift image...
|
||||
//
|
||||
// Shift image to target position:
|
||||
|
||||
@ -292,8 +292,11 @@ actions.Actions({
|
||||
this.focusImage()
|
||||
}],
|
||||
|
||||
reverseImages: [
|
||||
reverseImages: ['Reverse image order',
|
||||
function(){ this.data.reverseImages() }],
|
||||
reverseRibbons: ['Reverse ribbon order',
|
||||
function(){ this.data.reverseRibbons() }],
|
||||
|
||||
|
||||
// XXX this also requires images...
|
||||
sortImages: [
|
||||
@ -549,6 +552,13 @@ actions.Actions(Client, {
|
||||
this.ribbons.restoreTransitions()
|
||||
}
|
||||
}],
|
||||
reverseRibbons: [
|
||||
function(target){
|
||||
return function(){
|
||||
// XXX this is cheating...
|
||||
this.reload()
|
||||
}
|
||||
}],
|
||||
|
||||
|
||||
// basic image editing...
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user