Entity select widget improvements

The IPA.entity_select_widget has been modified into a searchable and
editable drop down list. The base functionality has been extracted
into IPA.combobox_widget.

Ticket #1361
This commit is contained in:
Endi S. Dewata
2011-07-15 12:18:59 -05:00
committed by Adam Young
parent 95901bbdb5
commit 571274e978
18 changed files with 464 additions and 308 deletions

View File

@@ -35,7 +35,7 @@ IPA.dialog = function(spec) {
that.template = spec.template;
that._entity_name = spec.entity_name;
that.width = spec.width || '400px';
that.width = spec.width || 400;
that.height = spec.height;
that.buttons = {};
@@ -375,7 +375,8 @@ IPA.adder_dialog = function (spec) {
var that = IPA.dialog(spec);
that.width = spec.width || '600px';
that.width = spec.width || 600;
that.height = spec.height || 360;
that.columns = $.ordered_map();
@@ -534,7 +535,6 @@ IPA.adder_dialog = function (spec) {
that.find_button = IPA.button({
name: 'find',
'label': button.val(),
'icon': 'ui-icon-search',
'click': function() { that.search(); }
});
button.replaceWith(that.find_button);