minor cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-07-03 06:58:28 +04:00
parent afd67252d4
commit 3081c537d1

View File

@ -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.')