summaryrefslogtreecommitdiffstats
path: root/install/ui/widget.js
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2011-07-08 10:15:16 -0400
committerEndi S. Dewata <edewata@redhat.com>2011-07-08 17:34:55 +0000
commit30492ef3faad5eabeb91930795fbfd413a732932 (patch)
treeccca73dd98ee11a7c38089a6684173651fb3ac14 /install/ui/widget.js
parent2337fb57601a29e41d9a94ed161104740cd8027c (diff)
downloadfreeipa-30492ef3faad5eabeb91930795fbfd413a732932.tar.gz
freeipa-30492ef3faad5eabeb91930795fbfd413a732932.tar.xz
freeipa-30492ef3faad5eabeb91930795fbfd413a732932.zip
clear errors on reset
https://fedorahosted.org/freeipa/ticket/1446
Diffstat (limited to 'install/ui/widget.js')
-rw-r--r--install/ui/widget.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/install/ui/widget.js b/install/ui/widget.js
index 0ec9a968b..5eb58f634 100644
--- a/install/ui/widget.js
+++ b/install/ui/widget.js
@@ -140,6 +140,12 @@ IPA.widget = function(spec) {
that.valid = true;
var values = that.save();
+ if (!values){
+ return;
+ }
+ if (values.length ===0 ){
+ return;
+ }
var value = values[0];
if (!value) {
return;
@@ -264,6 +270,7 @@ IPA.widget = function(spec) {
that.reset = function() {
that.update();
+ that.validate();
that.set_dirty(false);
};
@@ -1704,11 +1711,12 @@ IPA.entity_select_widget = function(spec) {
that.reset = function() {
that.entity_filter.val(that.values[0]);
- that.set_dirty(false);
populate_select(that.values[0]);
if (editable){
that.edit_box.val(that.values[0]);
}
+ that.validate();
+ that.set_dirty(false);
};
that.load = function(record) {