From 03d11661038a580f2bbaef922cd8e7b12d80066a Mon Sep 17 00:00:00 2001 From: Deon George Date: Sat, 30 Jan 2010 15:59:03 +1100 Subject: [PATCH] Fix the multiple unnecessary 'attribute is required' popups --- lib/TemplateRender.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/TemplateRender.php b/lib/TemplateRender.php index 7cba696..18ed07f 100644 --- a/lib/TemplateRender.php +++ b/lib/TemplateRender.php @@ -1852,7 +1852,6 @@ function fillRec(id,value) { if ($attribute->needJS('blur')) { printf('function blur_%s(component) {',$attribute->getName()); echo "\n"; -//echo ' alert("BLUR: ID:"+component.id+", V:"+pla_getComponentValue(component));'; $this->draw('BlurJavascript',$attribute,'component'); echo "};\n"; } @@ -1913,7 +1912,7 @@ function fillRec(id,value) { protected function drawFillJavascriptAttribute($attribute,$component_id,$component_value) { if ($attribute->needJS('validate')) - printf("\tvalidate_%s(pla_getComponentById(%s),false);\n",$attribute->getName(),$component_id); + printf("\tvalidate_%s(pla_getComponentById(%s),true);\n",$attribute->getName(),$component_id); } protected function drawValidateJavascriptAttribute($attribute,$component,$silence,$var_valid) {