mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
minor tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
369578f285
commit
7eeaf231ce
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user