From f256b8857faff7627ba8b6a6df03b3b5cd294f91 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Tue, 26 Apr 2011 16:21:25 -0500 Subject: Entitlement quantity validation. The widget base class has been modified to validate integer value if the type is specified in the metadata. This is used to validate entitlement quantity. --- install/ui/dialog.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'install/ui/dialog.js') diff --git a/install/ui/dialog.js b/install/ui/dialog.js index f60db5ca..2c9fdb0e 100644 --- a/install/ui/dialog.js +++ b/install/ui/dialog.js @@ -74,11 +74,19 @@ IPA.dialog = function(spec) { that.fields_by_name[field.name] = field; }; - that.field = function(field){ + that.field = function(field) { that.add_field(field); return that; }; + that.is_valid = function() { + for (var i=0; i