From 3081c537d14fa4a185168e01bc5c9d8e8361e317 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 3 Jul 2013 06:58:28 +0400 Subject: [PATCH] minor cleanup... Signed-off-by: Alex A. Naanou --- ui/ui.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/ui/ui.js b/ui/ui.js index f0df60c0..c78e0734 100755 --- a/ui/ui.js +++ b/ui/ui.js @@ -765,24 +765,22 @@ function loadDirectoryDialog(dfl){ formDialog(null, 'Path to open', { '': {ndir: dfl}, 'Precess previews': false, - }, 'OK', 'getDir') - //getter('Path to open', dfl) - // .done(function(path){ + }, 'OK', 'loadDirectoryDialog') .done(function(data){ - var path = data[''] + var path = normalizePath(data[''].trim()) var process_previews = data['Precess previews'] + // reset the modes... toggleSingleImageMode('off') toggleSingleRibbonMode('off') toggleMarkedOnlyView('off') - path = normalizePath(path.trim()) - + // do the loading... statusNotify(loadDir(path)) .done(function(){ - // XXX do we need to test anything else here??? if(!process_previews){ showStatusQ('Previews: processing started...') + // generate/attach previews... makeImagesPreviewsQ(DATA.order) .done(function(){ showStatusQ('Previews: processing done.')