summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts/js
diff options
context:
space:
mode:
authorxue <>2006-05-21 22:48:55 +0000
committerxue <>2006-05-21 22:48:55 +0000
commit2f02ab8fcbb5f45bb92cb9546c0328769c290049 (patch)
treebf8ce74d8fe37557b901ce486af5e41a938bdca9 /framework/Web/Javascripts/js
parent28691ec3ccec6d94f7417987d8c7203bff3efecb (diff)
Ensures control ID must start with a letter or underline character.
Diffstat (limited to 'framework/Web/Javascripts/js')
-rw-r--r--framework/Web/Javascripts/js/validator.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Web/Javascripts/js/validator.js b/framework/Web/Javascripts/js/validator.js
index 66b48866..f77534a7 100644
--- a/framework/Web/Javascripts/js/validator.js
+++ b/framework/Web/Javascripts/js/validator.js
@@ -138,7 +138,7 @@ return this.trim($F(control));}},observeDatePickerChanges:function()
{checked++;values.push(element.value);}});return{'checks':checked,'values':values};},getListElements:function()
{switch(this.options.ControlType)
{case'TCheckBoxList':case'TRadioButtonList':var elements=[];for(var i=0;i<this.options.TotalItems;i++)
-{var element=$(this.options.ControlToValidate+"_"+i);if(this.isCheckBoxType(element))
+{var element=$(this.options.ControlToValidate+"_c"+i);if(this.isCheckBoxType(element))
elements.push(element);}
return elements;case'TListBox':var elements=[];var element=$(this.options.ControlToValidate);if(element&&(type=element.type.toLowerCase()))
{if(type=="select-one"||type=="select-multiple")