diff options
author | wei <> | 2006-08-01 00:43:51 +0000 |
---|---|---|
committer | wei <> | 2006-08-01 00:43:51 +0000 |
commit | 62274f7a89ff033a32bcd436923d39d90831f4db (patch) | |
tree | 69bfdad7b1a149b82d027030e67fe22f5f6b4a45 /framework/Web/Javascripts/js/validator.js | |
parent | a87443699ef37a1815d39a69cf528c7da8a75658 (diff) |
Fixed #311
Diffstat (limited to 'framework/Web/Javascripts/js/validator.js')
-rw-r--r-- | framework/Web/Javascripts/js/validator.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Web/Javascripts/js/validator.js b/framework/Web/Javascripts/js/validator.js index 1480368f..ee578ea2 100644 --- a/framework/Web/Javascripts/js/validator.js +++ b/framework/Web/Javascripts/js/validator.js @@ -54,7 +54,7 @@ this.visible=this.visible&&this.messages.style.display!="none";Prado.Validation. return;} var refresh=update||this.visible==false||this.options.Refresh!=false;if(this.options.ShowSummary!=false&&refresh) {this.updateHTMLMessages(this.getMessages(validators));this.showSummary(validators);} -if(this.options.ScrollToSummary!=false) +if(this.options.ScrollToSummary!=false&&refresh) window.scrollTo(this.messages.offsetLeft-20,this.messages.offsetTop-20);if(this.options.ShowMessageBox==true&&refresh) {this.alertMessages(this.getMessages(validators));this.visible=true;}},updateHTMLMessages:function(messages) {while(this.messages.childNodes.length>0) |