diff --git a/install/ui/service.js b/install/ui/service.js index 3a7920c00..f8e95f897 100644 --- a/install/ui/service.js +++ b/install/ui/service.js @@ -77,31 +77,6 @@ IPA.entity_factories.service = function() { }; -IPA.service_select_widget = function(spec) { - - var that = IPA.text_widget(spec); - var known_services = ["", "cifs", "DNS", "ftp", "HTTP","imap", "ldap", - "libvirt","nfs","qpidd","smtp"]; - - that.parent_create = that.create; - - that.create = function(container) { - - var select_widget = $('', { name: 'list', - size: that.list_size, + size: that.size, style: 'width: 100%', change: function() { var value = $('option:selected', that.list).val(); @@ -1720,7 +1721,30 @@ IPA.combobox_widget = function(spec) { return that.list_container.css('visibility') == 'visible'; }; - that.search = function(filter) { + that.search = function(filter, on_success, on_error) { + + that.remove_options(); + + if (that.empty_option) { + that.create_option(); + } + + for (var i=0; i', { - text: text, + text: label, value: value }).appendTo(that.list); };