started refactorng the ui dialogs/containers to the new framework (experimental)...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-04-30 03:43:27 +03:00
parent 774fcf0413
commit a25a5d2228
2 changed files with 10 additions and 4 deletions

View File

@ -399,7 +399,7 @@ var URLHistoryUIActions = actions.Actions({
// XXX make availabilyty checking live (now on open dialog)... // XXX make availabilyty checking live (now on open dialog)...
// XXX need to check items... // XXX need to check items...
// XXX use svg icons for buttons... // XXX use svg icons for buttons...
listURLHistory: ['History|File/Show history', listURLHistory: ['History|File/Show history...',
widgets.makeUIDialog(function(){ widgets.makeUIDialog(function(){
var that = this var that = this
var parent = this.preventClosing ? this.preventClosing() : null var parent = this.preventClosing ? this.preventClosing() : null
@ -492,9 +492,11 @@ var URLHistoryUIActions = actions.Actions({
*/ */
// select and highlight current path... // select and highlight current path...
cur && o setTimeout(function(){
.select('"'+ cur +'"') cur && o
.addClass('highlighted') .select('"'+ cur +'"')
.addClass('highlighted')
}, 0)
return o return o
})], })],

View File

@ -81,6 +81,8 @@ function(list, item, elem, callback, options){
// //
// XXX add sort buttons: up/down/top/bottom... // XXX add sort buttons: up/down/top/bottom...
// XXX make this more generic... // XXX make this more generic...
// XXX currently using this also requires the use of makeUIDialog(..),
// can this be simpler???
var makeConfigListEditor = var makeConfigListEditor =
module.makeConfigListEditor = module.makeConfigListEditor =
function(actions, list_key, options){ function(actions, list_key, options){
@ -233,6 +235,8 @@ function(actions, list_key, options){
// XXX should this be more generic... // XXX should this be more generic...
// XXX currently using this also requires the use of makeUIDialog(..),
// can this be simpler???
var makeNestedConfigListEditor = var makeNestedConfigListEditor =
module.makeNestedConfigListEditor = module.makeNestedConfigListEditor =
function(actions, parent, list_key, value_key, options){ function(actions, parent, list_key, value_key, options){