diff options
author | wei <> | 2006-02-18 23:41:16 +0000 |
---|---|---|
committer | wei <> | 2006-02-18 23:41:16 +0000 |
commit | 270282e3a26b21184a2051995cb5b9a2755b823d (patch) | |
tree | 761d82ad761996f329d63acc770fc5a0bce9d5a2 /framework/Web/Javascripts/js/validator.js | |
parent | f1cc3c880b564362e7f00b18326e116884879231 (diff) |
Update some javascript code.
Diffstat (limited to 'framework/Web/Javascripts/js/validator.js')
-rw-r--r-- | framework/Web/Javascripts/js/validator.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/framework/Web/Javascripts/js/validator.js b/framework/Web/Javascripts/js/validator.js index f5ca2c8b..e1d0806a 100644 --- a/framework/Web/Javascripts/js/validator.js +++ b/framework/Web/Javascripts/js/validator.js @@ -243,20 +243,29 @@ var _55=_54||this.attr.refresh=="1"; var _56=this.getMessages(); if(_56.length<=0||!this.visible||!this.enabled){ if(_55){ +if(this.attr.display=="None"||this.attr.display=="Dynamic"){ Element.hide(this.div); +}else{ +this.div.style.visibility="hidden"; +} } return; } if(Prado.Validation.HasTargetGroup){ if(Prado.Validation.CurrentTargetGroup!=this.group){ if(_55){ +if(this.attr.display=="None"||this.attr.display=="Dynamic"){ Element.hide(this.div); +}else{ +this.div.style.visibility="hidden"; +} } return; } } if(this.attr.showsummary!="False"&&_55){ this.div.style.display="block"; +this.div.style.visibility="visible"; while(this.div.childNodes.length>0){ this.div.removeChild(this.div.lastChild); } |