From 7142cee430a194cca1208ce4ebcd70ee892af1b9 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Tue, 25 Oct 2011 18:41:45 -0500 Subject: Refactored validation code. The validation code in details facet, dialog, and sections have been modified to work more consistently. --- install/ui/details.js | 50 +++++++++++++++++++++++--------------------------- 1 file changed, 23 insertions(+), 27 deletions(-) (limited to 'install/ui/details.js') diff --git a/install/ui/details.js b/install/ui/details.js index e2423486..022b005b 100644 --- a/install/ui/details.js +++ b/install/ui/details.js @@ -181,14 +181,12 @@ IPA.details_section = function(spec) { return false; }; - that.is_valid = function() { - var fields = that.fields.values; + that.validate = function() { var valid = true; + var fields = that.fields.values; for (var i=0; i