From fc8e39cb41a48f8704520b074fcaf9d451e76783 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 27 Jun 2013 17:29:53 +0400 Subject: [PATCH] added state information to export dialog... Signed-off-by: Alex A. Naanou --- ui/ui.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ui/ui.js b/ui/ui.js index 03a5258a..a892e9bc 100755 --- a/ui/ui.js +++ b/ui/ui.js @@ -684,13 +684,21 @@ function getDir(message, dfl, btn){ /***************************************** Domain-specific dialogs ***/ // XXX do reporting... -function exportPreviewsDialog(dfl){ +function exportPreviewsDialog(state, dfl){ dfl = dfl == null ? BASE_URL : dfl + + // XXX make this more generic... + if(state == null){ + state = toggleMarkedOnlyView('?') == 'on' ? 'marked images' : state + state = toggleSingleRibbonMode('?') == 'on' ? 'current ribbon' : state + state = state == null ? 'all images' : state + } + var res = $.Deferred() updateStatus('Export...').show() - formDialog(null, 'Export previews', { + formDialog(null, 'Export source: '+ state +'.', { 'Image name pattern': '%f', 'Fav directory name': 'fav', 'Destination': {ndir: dfl},