From 7eeaf231ce68a704d9e4d3dd6182bb5dd7dc39f0 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 15 Jan 2016 05:43:37 +0300 Subject: [PATCH] minor tweaks... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/exif.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ui (gen4)/features/exif.js b/ui (gen4)/features/exif.js index b2d3f71b..117ba53d 100755 --- a/ui (gen4)/features/exif.js +++ b/ui (gen4)/features/exif.js @@ -198,6 +198,8 @@ module.MetadataReader = core.ImageGridFeatures.Feature({ // XXX add identical fields -- show first available and hide the rest... // 'Shutter Speed', 'Exposure Time', // 'Lens ID', 'Lens' +// XXX show all fields but make some of them hidden/disabled +// -- togglable via D var MetadataUIActions = actions.Actions({ config: { 'metadata-field-order': [ @@ -220,10 +222,13 @@ var MetadataUIActions = actions.Actions({ }, // XXX should we replace 'mode' with nested set of metadata??? + // XXX BUG: with mode 'disabled' key D enables elements but does not + // hide them... showMetadata: ['Image/Show metadata', function(image, mode){ image = this.data.getImage(image) - mode = mode || 'short' + //mode = mode || 'short' + mode = mode || 'disabled' var field_order = this.config['metadata-field-order'] || [] var x = field_order.length + 1