From e6a26104c3d1e942f41b495eee752650db5ea4ea Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 21 Oct 2016 18:51:42 +0300 Subject: [PATCH] added cropFlatten action... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/base.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/ui (gen4)/features/base.js b/ui (gen4)/features/base.js index a2602d41..fdf88e61 100755 --- a/ui (gen4)/features/base.js +++ b/ui (gen4)/features/base.js @@ -795,7 +795,9 @@ module.CropActions = actions.Actions({ // crop: ['- Crop/Crop image list', function(list, flatten){ - list = list || this.data.order + //list = list || this.data.order + list = list || this.data.getImages() + if(this.crop_stack == null){ this.crop_stack = [] } @@ -862,7 +864,10 @@ module.CropActions = actions.Actions({ // XXX save a crop (catalog)... // XXX - + + // XXX not sure if we actually need this... + cropFlatten: ['Crop/Flatten', + function(list){ this.crop(list, true) }], cropRibbon: ['Crop/Crop current ribbon', function(ribbon, flatten){ if(typeof(ribbon) == typeof(true)){ @@ -872,7 +877,7 @@ module.CropActions = actions.Actions({ ribbon = ribbon || 'current' this.crop(this.data.getImages(ribbon), flatten) }], - cropRibbonAndAbove: ['Crop/Crop current and above ribbons', + cropRibbonAndAbove: ['Crop/Crop out ribbons bellow', function(ribbon, flatten){ if(typeof(ribbon) == typeof(true)){ flatten = ribbon