summaryrefslogtreecommitdiffstats
path: root/install/ui/widget.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/widget.js')
-rw-r--r--install/ui/widget.js7
1 files changed, 6 insertions, 1 deletions
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<that.fields.length; i++) {
var field = that.fields[i];