diff --git a/ui (gen4)/features/ui-widgets.js b/ui (gen4)/features/ui-widgets.js index 932697ae..a512c758 100755 --- a/ui (gen4)/features/ui-widgets.js +++ b/ui (gen4)/features/ui-widgets.js @@ -1634,6 +1634,12 @@ var WidgetTestActions = actions.Actions({ make.Heading(' Editable list:') make.EditableList(editable_list) + make.Heading('More:') + make.Action('Editable list demos...') + .on('open', function(){ actions.testList() }) + make.Action('Pinned list demo...') + .on('open', function(){ actions.testPinnedList() }) + // NOTE: the dialog's .parent is not yet set at this point... // This will finalize the dialog... diff --git a/ui (gen4)/lib/widget/browse.js b/ui (gen4)/lib/widget/browse.js index 6002f810..09457a05 100755 --- a/ui (gen4)/lib/widget/browse.js +++ b/ui (gen4)/lib/widget/browse.js @@ -586,7 +586,9 @@ function(list, options){ // in-place replace list elements... // NOTE: this is necessary as not everything we do with lst // is in-place... - : list.splice.apply(list, [0, list.length].concat(lst))) + : list.splice.apply(list, [0, list.length].concat(lst))) + // we need to return the list itself... + && lst // in case the list(..) returns nothing... || lst } @@ -814,9 +816,8 @@ function(list, options){ : undefined) } - lst = write(list, lst) + lst = dialog.__list[id] = write(list, lst) - dialog.__list[id] = lst // update list and select new value... dialog.update()