From 449af9bd1d56e2ded953698632985e62e49712e8 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 1 Dec 2013 06:12:57 +0400 Subject: [PATCH] minor tweaks... Signed-off-by: Alex A. Naanou --- ui/ui.js | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/ui/ui.js b/ui/ui.js index 1721b79d..56031453 100755 --- a/ui/ui.js +++ b/ui/ui.js @@ -932,9 +932,23 @@ function exportPreviewsDialog(state, dfl){ // XXX make this more generic... // tell the user what state are we exporting... if(state == null){ + var imgs = 0 + // NOTE: we are not using order or image count as these sets may + // be larger that the current crop... + DATA.ribbons.map(function(e){ + imgs += e.length + }) state = toggleSingleImageMode('?') == 'on' ? 'current image' : state - state = state == null && isViewCropped() ? 'current cropped view' : state - state = state == null ? 'all images' : state + state = state == null && isViewCropped() ? + 'cropped view: '+ + imgs+' images in '+ + DATA.ribbons.length+' ribbons' + : state + state = state == null ? + 'all: '+ + imgs+' images in '+ + DATA.ribbons.length+' ribbons' + : state } var res = $.Deferred()