From 4dae88445ba0d8b92c885efcadde6f4862e38bd3 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 5 Jul 2013 05:33:54 +0400 Subject: [PATCH] minor tweak... Signed-off-by: Alex A. Naanou --- ui/compatibility.js | 3 +-- ui/ui.js | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ui/compatibility.js b/ui/compatibility.js index dfd2f28c..c0b04175 100755 --- a/ui/compatibility.js +++ b/ui/compatibility.js @@ -285,7 +285,6 @@ if(window.CEF_dumpJSON != null){ } // XXX should this be sync??? - // XXX we are cheating here right now... /* window.makeImageGID = function(path, make_text_gid){ @@ -294,7 +293,7 @@ if(window.CEF_dumpJSON != null){ var artist = // format: "20130102-122315" var date = - var name = path.split(/[\\\/]/).pop() + var name = path.split(/[\\\/]/).pop().split('.')[0] var text_gid = artist +'-'+ date +'-'+ name diff --git a/ui/ui.js b/ui/ui.js index 04595003..523f98e9 100755 --- a/ui/ui.js +++ b/ui/ui.js @@ -812,7 +812,7 @@ function loadDirectoryDialog(dfl){ formDialog(null, 'Path to open', { '': {ndir: dfl}, - 'Precess previews': false, + 'Precess previews': true, }, 'OK', 'loadDirectoryDialog') .done(function(data){ var path = normalizePath(data[''].trim()) @@ -826,7 +826,7 @@ function loadDirectoryDialog(dfl){ // do the loading... statusNotify(loadDir(path)) .done(function(){ - if(!process_previews){ + if(process_previews){ showStatusQ('Previews: processing started...') // generate/attach previews... makeImagesPreviewsQ(DATA.order)