From ecb58275e30f215143c57bdf96094103c8fda7ba Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Fri, 16 Sep 2011 12:02:12 -0500 Subject: Use editable combobox for service type. The service type field in the service adder dialog has been modified to use an editable combobox. Ticket #1633. --- install/ui/widget.js | 34 +++++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-) (limited to 'install/ui/widget.js') diff --git a/install/ui/widget.js b/install/ui/widget.js index f32dfbb1..8d425412 100644 --- a/install/ui/widget.js +++ b/install/ui/widget.js @@ -1598,8 +1598,9 @@ IPA.combobox_widget = function(spec) { that.editable = spec.editable; that.searchable = spec.searchable; - that.list_size = spec.list_size || 5; + that.size = spec.size || 5; that.empty_option = spec.empty_option === undefined ? true : spec.empty_option; + that.options = spec.options || []; that.create = function(container) { that.widget_create(container); @@ -1688,7 +1689,7 @@ IPA.combobox_widget = function(spec) { that.list = $('