Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Zelmanovich <igorz@mono-cvs.ximian.com>2008-01-28 19:32:35 +0300
committerIgor Zelmanovich <igorz@mono-cvs.ximian.com>2008-01-28 19:32:35 +0300
commit45769695adbde516e4c8f16983619af9c5be2534 (patch)
treebcedbcadc2b4d1207c987e2d3a2833263a15960a /mcs/class/System.Web/resources
parent0f05645bbcf625693e13d76dd0ea99686e117c98 (diff)
refactoring
svn path=/trunk/mcs/; revision=94156
Diffstat (limited to 'mcs/class/System.Web/resources')
-rw-r--r--mcs/class/System.Web/resources/WebUIValidation_2.0.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/mcs/class/System.Web/resources/WebUIValidation_2.0.js b/mcs/class/System.Web/resources/WebUIValidation_2.0.js
index 98c1453d615..7f3caac5e3d 100644
--- a/mcs/class/System.Web/resources/WebUIValidation_2.0.js
+++ b/mcs/class/System.Web/resources/WebUIValidation_2.0.js
@@ -56,7 +56,8 @@ webForm.ValidatorOnLoad = function ()
else
vo._enabled = true;
- vo._evaluationfunction = webForm [vo.evaluationfunction];
+ if (typeof(vo.evaluationfunction) == "string")
+ vo.evaluationfunction = webForm [vo.evaluationfunction];
}
webForm.Page_ValidationActive = true;
@@ -207,7 +208,7 @@ webForm.Page_ClientValidate = function (group)
var invalidControlHasBeenFocused = false;
for (var v = 0; v < webForm.Page_Validators.length; v++) {
var vo = webForm.Page_Validators [v];
- var evalfunc = vo._evaluationfunction;
+ var evalfunc = vo.evaluationfunction;
var result = false;
if (!vo._enabled || !webForm.IsValidationGroupMatch(vo, group)) {