From 8177a807bd67dd310e91d849d0ef8be555003480 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 21 Apr 2016 01:42:06 +0300 Subject: [PATCH] minor fixes and cleanup... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/filesystem.js | 2 +- ui (gen4)/features/metadata.js | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/ui (gen4)/features/filesystem.js b/ui (gen4)/features/filesystem.js index 67171279..514141d1 100755 --- a/ui (gen4)/features/filesystem.js +++ b/ui (gen4)/features/filesystem.js @@ -1007,7 +1007,7 @@ var FileSystemWriterActions = actions.Actions({ .then(function(){ that.data.ribbons[ribbon].forEach(function(gid){ var img = that.images[gid] - var img_name = pathlib.basename(img.name || img.path) + var img_name = pathlib.basename(img.path || (img.name + img.ext)) // get best preview... diff --git a/ui (gen4)/features/metadata.js b/ui (gen4)/features/metadata.js index bafa7b5d..efb3a7fe 100755 --- a/ui (gen4)/features/metadata.js +++ b/ui (gen4)/features/metadata.js @@ -279,7 +279,8 @@ var MetadataUIActions = actions.Actions({ // base 'GID', 'File Name', 'Parent Directory', 'Full Path', - 'Date file created', 'Date file modified', 'Date file accessed', + + 'Date created', 'ctime', 'mtime', 'atime', 'Index (ribbon)', 'Index (crop)', 'Index (global)', @@ -378,9 +379,11 @@ var MetadataUIActions = actions.Actions({ ['Full Path: ', _normalize((img.base_path || '.') +'/'+ img.path)], - ['Date file created: ', img.ctime && new Date(img.ctime).toShortDate()], - ['- Date file modified: ', img.mtime && new Date(img.mtime).toShortDate()], - ['- Date file accessed: ', img.atime && new Date(img.atime).toShortDate()], + ['Date created: ', img.birthtime + && new Date(img.birthtime).toShortDate()], + ['- ctime: ', img.ctime && new Date(img.ctime).toShortDate()], + ['- mtime: ', img.mtime && new Date(img.mtime).toShortDate()], + ['- atime: ', img.atime && new Date(img.atime).toShortDate()], ]) // comment and tags...