From 725cb38eaaee72ba27bef696dbf1db81486e11e2 Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 21 Jun 2007 01:16:52 +0000 Subject: Fixed #488, #620, #632, #633. --- HISTORY | 6 ++++-- .../source/prado/validator/validation3.js | 20 ++++++++++---------- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/HISTORY b/HISTORY index 45b4a427..d1aa51ed 100644 --- a/HISTORY +++ b/HISTORY @@ -6,18 +6,20 @@ BUG: Ticket#650 - Fixed TMysqlMetaData bug about SHOW FULL TABLES (Qiang) BUG: Ticket#651 - TUserManager Roles names (from config) should be trimmed (Qiang) BUG: Ticket#652 - OFFSET must be specified together with LIMIT for TScaffoldView (Qiang) BUG: Ticket#653 - TUrlMapping: ServiceId irgnored in URL-Map (Qiang) +BUG: Ticket#488 - TActiveCustomValidator Is Bypassing My Callback (Wei) +BUG: Ticket#620 - PRADO should not take over all of Prototype's Callbacks (Wei) BUG: TWizard Sidebar using TDataListItemRenderer has error (Qiang) BUG: TOutputCache crashes when a default button is set (Qiang) BUG: Fix the bug that tag was ignored in page configurations (Qiang) BUG: Ticket#654 - TAssetManager::copyDirectory() do not run closedir on an invalid resource (Knut) BUG: Ticket#655 - TAssetManager::publishTarFile() exception for 'assetmanager_tarchecksum_invalid' is not thrown on BSD systems (Knut) +BUG: Ticket#649 - Wrong error message in THttpCookieCollection::itemAt() (Knut) ENH: Ticket#625 - Added @ to represent authenticated users in auth rules (Qiang) ENH: Ticket#631 - Make TQueue implement Countable as the other collection classes (Knut) ENH: Ticket#634 - Override __toString for TXmlElement and TXmlDocument (Knut) ENH: Ticket#639 - Added setters for certain properties of TTheme (Qiang) ENH: Ticket#641 - Added support to find out controls of specified class or parent classes (Qiang) -CHG: Ticket#649 - Wrong error message in THttpCookieCollection::itemAt() (Knut) -NEW: Ticket#646 - Implement TAPCCache::add() (Knut) +ENH: Ticket#646 - Implement TAPCCache::add() (Knut) Version 3.1.0 RC May 14, 2007 ============================= diff --git a/framework/Web/Javascripts/source/prado/validator/validation3.js b/framework/Web/Javascripts/source/prado/validator/validation3.js index fe496ed9..5a59d66e 100644 --- a/framework/Web/Javascripts/source/prado/validator/validation3.js +++ b/framework/Web/Javascripts/source/prado/validator/validation3.js @@ -584,7 +584,7 @@ Prado.WebUI.TBaseValidator.prototype = this.isValid = true; this._isObserving = {}; this.group = null; - //this.requestDispatched = false; + this.requestDispatched = false; this.options = options; this.control = $(options.ControlToValidate); @@ -689,7 +689,7 @@ Prado.WebUI.TBaseValidator.prototype = if(typeof(this.options.OnValidate) == "function") { - //if(this.requestDispatched == false) + if(this.requestDispatched == false) this.options.OnValidate(this, invoker); } @@ -713,11 +713,11 @@ Prado.WebUI.TBaseValidator.prototype = { if(typeof(this.options.OnValidationSuccess) == "function") { - //if(this.requestDispatched == false) - //{ + if(this.requestDispatched == false) + { this.refreshControlAndMessage(); this.options.OnValidationSuccess(this, invoker); - //} + } } else this.updateControl(); @@ -726,11 +726,11 @@ Prado.WebUI.TBaseValidator.prototype = { if(typeof(this.options.OnValidationError) == "function") { - //if(this.requestDispatched == false) - //{ + if(this.requestDispatched == false) + { this.refreshControlAndMessage(); this.options.OnValidationError(this, invoker) - //} + } } else this.updateControl(); @@ -1146,8 +1146,8 @@ Prado.WebUI.TActiveCustomValidator = Class.extend(Prado.WebUI.TBaseValidator, evaluateIsValid : function() { value = this.getValidationValue(); - //if(!this.requestDispatched && (""+value) != (""+this.validatingValue)) - if((""+value) != (""+this.validatingValue)) + if(!this.requestDispatched && (""+value) != (""+this.validatingValue)) + //if((""+value) != (""+this.validatingValue)) { this.validatingValue = value; request = new Prado.CallbackRequest(this.options.EventTarget, this.options); -- cgit v1.2.3