diff --git a/ui (gen4)/features/filesystem.js b/ui (gen4)/features/filesystem.js index 95815216..d6704587 100755 --- a/ui (gen4)/features/filesystem.js +++ b/ui (gen4)/features/filesystem.js @@ -925,7 +925,7 @@ var FileSystemWriterUIActions = actions.Actions({ // XXX add ability to create dirs... browseSaveIndex: ['File/Save index to...', makeBrowseProxy('saveIndex', function(){ - this.loaction.method = 'loadIndex' })], + this.location.method = 'loadIndex' })], }) diff --git a/ui (gen4)/features/history.js b/ui (gen4)/features/history.js index 48e6876d..dbc4217f 100755 --- a/ui (gen4)/features/history.js +++ b/ui (gen4)/features/history.js @@ -336,6 +336,47 @@ module.URLHistoryLocalStorage = core.ImageGridFeatures.Feature({ }) +// XXX +var URLHistoryFSWriter = +module.URLHistoryFSWriter = core.ImageGridFeatures.Feature({ + title: '', + doc: '', + + tag: 'url-history-fs-writer', + depends: [ + 'fs-writer', + 'url-history-local-storage', + ], + + config: { + 'url-history-push-to-top-on-save': false, + }, + + handlers: [ + ['saveIndex', + function(){ + // push saved to top... + if(this.config['url-history-push-to-top-on-save']){ + this.pushURLToHistory() + + // update... + } else { + var l = this.location + var e = this.url_history[l.path] + if(e != null){ + e.open = l.method + this.saveURLHistory() + + } else { + this.pushURLToHistory() + } + } + }], + ], +}) + + + //--------------------------------------------------------------------- var URLHistoryUIActions = actions.Actions({ diff --git a/ui (gen4)/features/meta.js b/ui (gen4)/features/meta.js index e642674b..494559b8 100755 --- a/ui (gen4)/features/meta.js +++ b/ui (gen4)/features/meta.js @@ -76,6 +76,7 @@ core.ImageGridFeatures.Feature('viewer-testing', [ 'config-local-storage', 'ui-url-hash', 'url-history-local-storage', + 'url-history-fs-writer', 'ui-single-image-view-local-storage', diff --git a/ui (gen4)/features/ui-status.js b/ui (gen4)/features/ui-status.js index 8958ecfd..7ec1b631 100755 --- a/ui (gen4)/features/ui-status.js +++ b/ui (gen4)/features/ui-status.js @@ -348,7 +348,8 @@ module.StatusBar = core.ImageGridFeatures.Feature({ depends: [ 'ui', - // XXX this is here to enable context menu... + // XXX this is here to enable context menu + // see: StatusBarActions.__statusbar_elements__.mark(..) 'ui-browse-actions', ], diff --git a/ui (gen4)/package.json b/ui (gen4)/package.json index 008552b1..254f4c9e 100755 --- a/ui (gen4)/package.json +++ b/ui (gen4)/package.json @@ -34,5 +34,8 @@ "devDependencies": { "nw-builder": "^2.2.0", "less": "*" + }, + "scripts": { + "build-css": "lessc css/layout.less css/layout.css" } }