From a25a5d222882d61ce0fd19a82d32ca0c81c606ae Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 30 Apr 2016 03:43:27 +0300 Subject: [PATCH] started refactorng the ui dialogs/containers to the new framework (experimental)... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/history.js | 10 ++++++---- ui (gen4)/features/ui-widgets.js | 4 ++++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ui (gen4)/features/history.js b/ui (gen4)/features/history.js index 039a6010..1084e291 100755 --- a/ui (gen4)/features/history.js +++ b/ui (gen4)/features/history.js @@ -399,7 +399,7 @@ var URLHistoryUIActions = actions.Actions({ // XXX make availabilyty checking live (now on open dialog)... // XXX need to check items... // XXX use svg icons for buttons... - listURLHistory: ['History|File/Show history', + listURLHistory: ['History|File/Show history...', widgets.makeUIDialog(function(){ var that = this var parent = this.preventClosing ? this.preventClosing() : null @@ -492,9 +492,11 @@ var URLHistoryUIActions = actions.Actions({ */ // select and highlight current path... - cur && o - .select('"'+ cur +'"') - .addClass('highlighted') + setTimeout(function(){ + cur && o + .select('"'+ cur +'"') + .addClass('highlighted') + }, 0) return o })], diff --git a/ui (gen4)/features/ui-widgets.js b/ui (gen4)/features/ui-widgets.js index 1654d56a..c4020245 100755 --- a/ui (gen4)/features/ui-widgets.js +++ b/ui (gen4)/features/ui-widgets.js @@ -81,6 +81,8 @@ function(list, item, elem, callback, options){ // // XXX add sort buttons: up/down/top/bottom... // XXX make this more generic... +// XXX currently using this also requires the use of makeUIDialog(..), +// can this be simpler??? var makeConfigListEditor = module.makeConfigListEditor = function(actions, list_key, options){ @@ -233,6 +235,8 @@ function(actions, list_key, options){ // XXX should this be more generic... +// XXX currently using this also requires the use of makeUIDialog(..), +// can this be simpler??? var makeNestedConfigListEditor = module.makeNestedConfigListEditor = function(actions, parent, list_key, value_key, options){