From 7c2cf52efa2f55f05bb52cf6e1d6f691f02ece7b Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 1 Feb 2017 23:36:09 +0300 Subject: [PATCH] cleanup... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/ui-widgets.js | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/ui (gen4)/features/ui-widgets.js b/ui (gen4)/features/ui-widgets.js index 6e05f4ab..85bf92c8 100755 --- a/ui (gen4)/features/ui-widgets.js +++ b/ui (gen4)/features/ui-widgets.js @@ -1616,34 +1616,23 @@ var WidgetTestActions = actions.Actions({ make('Normal item') - make.Editable('Select to edit...') + // this is the same as make('...') + make.Separator() - make.Editable('Enter to edit (cleared)...', { + make.Editable('Editable (Select to edit)') + + make.Editable('Editable (Enter to edit, cleared)...', { start_on: 'open', clear_on_edit: true, }) - e = make.Editable('Nested editable...') - e.parent().append($('
').append(e)) - - // this is the same as make('...') - make.Separator() - + make.Heading('List:') make.List(['a', 'b', 'c']) make.Separator() make.EditableList(['x', 'y', 'z']) - make.Separator() - // XXX BUG: this does not respond well to clicks... - // ...this occurs on click ig 'start_on' is 'select' (default) - // for some reason this triggers .update() on the dialog... - make.Editable('Editable (bug)', { - clear_on_edit: true, - }) - - // NOTE: the dialog's .parent is not yet set at this point... // This will finalize the dialog...