diff --git a/ui (gen4)/features/app.js b/ui (gen4)/features/app.js index 4bf1db94..d2e36c7e 100755 --- a/ui (gen4)/features/app.js +++ b/ui (gen4)/features/app.js @@ -170,8 +170,7 @@ var AppControlActions = actions.Actions({ var base = image.base_path || this.location.path var filename = image.path - - path = pathlib.normalize(base + '/' + filename) + var path = pathlib.normalize(base + '/' + filename) nw.Shell.showItemInFolder(path) }], diff --git a/ui (gen4)/features/marks.js b/ui (gen4)/features/marks.js index 55353606..2f3870e3 100755 --- a/ui (gen4)/features/marks.js +++ b/ui (gen4)/features/marks.js @@ -348,15 +348,15 @@ var ImageMarkEditActions = actions.Actions({ shiftMarked('down')], // XXX undo... - shiftMarkedAfter: ['Mark|Ribbon/Shift marked after image', + shiftMarkedAfter: ['Mark|Ribbon/Shift marked after', {browseMode: 'cropMarked'}, function(target){ - this.shiftMarkedTo(this.marked, target || 'current', 'after') }], + this.shiftImageTo(this.marked, target || 'current', 'after') }], // XXX undo... - shiftMarkedBefore: ['Mark|Ribbon/Shift marked before image', + shiftMarkedBefore: ['Mark|Ribbon/Shift marked before', {browseMode: 'cropMarked'}, function(target){ - this.shiftMarkedTo(this.marked, target || 'current', 'before') }], + this.shiftImageTo(this.marked, target || 'current', 'before') }], }) var ImageEditMarks = diff --git a/ui (gen4)/features/metadata.js b/ui (gen4)/features/metadata.js index c4f4fcc3..cd0a304f 100755 --- a/ui (gen4)/features/metadata.js +++ b/ui (gen4)/features/metadata.js @@ -4,19 +4,19 @@ * **********************************************************************/ -// XXX this is a hack... -// ...need a way to escape these so as not to load them in browser... -if(typeof(process) != 'undefined'){ - var fs = require('fs') - var path = require('path') - var exiftool = require('exiftool') -} - - ((typeof define)[0]=='u'?function(f){module.exports=f(require)}:define) (function(require){ var module={} // make module AMD/node compatible... /*********************************************************************/ +// XXX this is a hack... +// ...need a way to escape these so as not to load them in browser... +if(typeof(process) != 'undefined'){ + var fs = requirejs('fs') + var path = requirejs('path') + var exiftool = requirejs('exiftool') +} + + var util = require('lib/util') var toggler = require('lib/toggler') var tasks = require('lib/tasks') @@ -168,7 +168,7 @@ var MetadataReaderActions = actions.Actions({ }], // XXX STUB: add support for this to .readMetadata(..) - readAllMetadata: ['- Image/Read all metadata', + readAllMetadata: ['File/Read all metadata', function(){ var that = this // XXX make this a global API... diff --git a/ui (gen4)/features/ui-ribbons.js b/ui (gen4)/features/ui-ribbons.js index 7107037c..376b744e 100755 --- a/ui (gen4)/features/ui-ribbons.js +++ b/ui (gen4)/features/ui-ribbons.js @@ -770,6 +770,9 @@ module.ShiftAnimation = core.ImageGridFeatures.Feature({ depends: [ 'ui-ribbons-render', ], + // NOTE: this will allow the animations to start as early as possible + // in the action call... + priority: 'high', config: { // XXX make this duration... diff --git a/ui (gen4)/features/ui-single-image.js b/ui (gen4)/features/ui-single-image.js index 3b5e5057..3f724354 100755 --- a/ui (gen4)/features/ui-single-image.js +++ b/ui (gen4)/features/ui-single-image.js @@ -338,6 +338,10 @@ module.SingleImageView = core.ImageGridFeatures.Feature({ actions: SingleImageActions, handlers:[ + ['load.pre', + function(){ + this.toggleSingleImage('?') == 'on' + && this.toggleSingleImage('off') }], // update config... //['resizing.post', ['resizingDone resizingWindow',