added .reverseRibbons() action...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2014-10-18 04:36:47 +04:00
parent 29c9fa8ed5
commit 84da434226
2 changed files with 15 additions and 1 deletions

View File

@ -898,6 +898,10 @@ module.DataPrototype = {
return this return this
}, },
reverseRibbons: function(){
this.ribbon_order.reverse()
},
// Shift image... // Shift image...
// //
// Shift image to target position: // Shift image to target position:

View File

@ -292,8 +292,11 @@ actions.Actions({
this.focusImage() this.focusImage()
}], }],
reverseImages: [ reverseImages: ['Reverse image order',
function(){ this.data.reverseImages() }], function(){ this.data.reverseImages() }],
reverseRibbons: ['Reverse ribbon order',
function(){ this.data.reverseRibbons() }],
// XXX this also requires images... // XXX this also requires images...
sortImages: [ sortImages: [
@ -549,6 +552,13 @@ actions.Actions(Client, {
this.ribbons.restoreTransitions() this.ribbons.restoreTransitions()
} }
}], }],
reverseRibbons: [
function(target){
return function(){
// XXX this is cheating...
this.reload()
}
}],
// basic image editing... // basic image editing...