From f904df0f0dfd4734f978cdc3ddf5badabc067ed6 Mon Sep 17 00:00:00 2001 From: Adam Young Date: Wed, 19 Jan 2011 21:10:18 -0500 Subject: declarative defintions Delay the creation of entities until after ipa init is called made the user and group entity definitions declarative removed unused facet from groups adjusted unit tests made review changes: factories are now in an associative array entity init called right after factory init dialogs in entity init fixed type on search --- install/ui/widget.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'install/ui/widget.js') diff --git a/install/ui/widget.js b/install/ui/widget.js index f34532d23..cea86fad0 100644 --- a/install/ui/widget.js +++ b/install/ui/widget.js @@ -58,7 +58,7 @@ IPA.widget = function(spec) { }); /*returns true and clears the error message if the field value passes - the validation pattern. If the field value does not pass validation, + the validation pattern. If the field value does not pass validation, displays the error message and returns false. */ function validate_input(text) { if (!(that.param_info && that.param_info.pattern)) { @@ -898,6 +898,11 @@ IPA.dialog = function(spec) { that.fields_by_name[field.name] = field; }; + that.field = function(field){ + that.add_field(field); + return that; + }; + that.init = function() { for (var i=0; i