minor tweak...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-07-05 05:33:54 +04:00
parent d404dee472
commit 4dae88445b
2 changed files with 3 additions and 4 deletions

View File

@ -285,7 +285,6 @@ if(window.CEF_dumpJSON != null){
} }
// XXX should this be sync??? // XXX should this be sync???
// XXX we are cheating here right now...
/* /*
window.makeImageGID = function(path, make_text_gid){ window.makeImageGID = function(path, make_text_gid){
@ -294,7 +293,7 @@ if(window.CEF_dumpJSON != null){
var artist = var artist =
// format: "20130102-122315" // format: "20130102-122315"
var date = var date =
var name = path.split(/[\\\/]/).pop() var name = path.split(/[\\\/]/).pop().split('.')[0]
var text_gid = artist +'-'+ date +'-'+ name var text_gid = artist +'-'+ date +'-'+ name

View File

@ -812,7 +812,7 @@ function loadDirectoryDialog(dfl){
formDialog(null, 'Path to open', { formDialog(null, 'Path to open', {
'': {ndir: dfl}, '': {ndir: dfl},
'Precess previews': false, 'Precess previews': true,
}, 'OK', 'loadDirectoryDialog') }, 'OK', 'loadDirectoryDialog')
.done(function(data){ .done(function(data){
var path = normalizePath(data[''].trim()) var path = normalizePath(data[''].trim())
@ -826,7 +826,7 @@ function loadDirectoryDialog(dfl){
// do the loading... // do the loading...
statusNotify(loadDir(path)) statusNotify(loadDir(path))
.done(function(){ .done(function(){
if(!process_previews){ if(process_previews){
showStatusQ('Previews: processing started...') showStatusQ('Previews: processing started...')
// generate/attach previews... // generate/attach previews...
makeImagesPreviewsQ(DATA.order) makeImagesPreviewsQ(DATA.order)