From 28734c5ee0000515930214165f0fd2b54bf512c4 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 29 Mar 2017 19:56:28 +0300 Subject: [PATCH] cleanup... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/ui-marks.js | 10 +++++----- ui (gen4)/lib/toggler.js | 2 -- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/ui (gen4)/features/ui-marks.js b/ui (gen4)/features/ui-marks.js index 9c3ae267..484d6d90 100755 --- a/ui (gen4)/features/ui-marks.js +++ b/ui (gen4)/features/ui-marks.js @@ -219,15 +219,15 @@ var ImageMarkActions = actions.Actions({ nextMarked: ['Mark|Navigate/Next marked image', function(mode){ this.nextTagged('selected', mode) }], - cropMarked: ['Mark|Crop/Crop $marked images', - function(flatten){ this.cropTagged('selected', 'any', flatten) }], - - shiftMarkedUp: ['Mark|Ribbon/Shift marked up', + shiftMarkedUp: ['Mark|Ribbon/Shift marked $up', {undo: undoShift('shiftMarkedDown')}, shiftMarked('up')], - shiftMarkedDown: ['Mark|Ribbon/Shift marked down', + shiftMarkedDown: ['Mark|Ribbon/Shift marked $down', {undo: undoShift('shiftMarkedUp')}, shiftMarked('down')], + + cropMarked: ['Mark|Crop/Crop $marked images', + function(flatten){ this.cropTagged('selected', 'any', flatten) }], }) diff --git a/ui (gen4)/lib/toggler.js b/ui (gen4)/lib/toggler.js index 0e3ac651..384c9a0d 100755 --- a/ui (gen4)/lib/toggler.js +++ b/ui (gen4)/lib/toggler.js @@ -263,9 +263,7 @@ function(elem, state_accessor, states, callback_a, callback_b){ } // update the element... - //state_accessor.call(this, e, state) var res = state_accessor.call(this, e, state) - //action = res !== undefined ? res : action // post callback... if(callback_post != null){