diff options
Diffstat (limited to 'install/ui/dialog.js')
-rw-r--r-- | install/ui/dialog.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/install/ui/dialog.js b/install/ui/dialog.js index 41b35fb4..ff64b37c 100644 --- a/install/ui/dialog.js +++ b/install/ui/dialog.js @@ -66,7 +66,6 @@ IPA.dialog = function(spec) { that.height = spec.height; that.buttons = $.ordered_map(); - that.sections = $.ordered_map(); var init = function() { @@ -129,12 +128,14 @@ IPA.dialog = function(spec) { return that; }; - that.is_valid = function() { - for (var i=0; i<that.sections.length; i++) { - var section = that.sections.values[i]; - if (!section.is_valid()) return false; + that.validate = function() { + var valid = true; + var sections = that.sections.values; + for (var i=0; i<sections.length; i++) { + var section = sections[i]; + valid &= section.validate(); } - return true; + return valid; }; that.add_section = function(section) { |