Fix the multiple unnecessary 'attribute is required' popups

This commit is contained in:
Deon George 2010-01-30 15:59:03 +11:00
parent 676a675c7c
commit 03d1166103

View File

@ -1852,7 +1852,6 @@ function fillRec(id,value) {
if ($attribute->needJS('blur')) { if ($attribute->needJS('blur')) {
printf('function blur_%s(component) {',$attribute->getName()); printf('function blur_%s(component) {',$attribute->getName());
echo "\n"; echo "\n";
//echo ' alert("BLUR: ID:"+component.id+", V:"+pla_getComponentValue(component));';
$this->draw('BlurJavascript',$attribute,'component'); $this->draw('BlurJavascript',$attribute,'component');
echo "};\n"; echo "};\n";
} }
@ -1913,7 +1912,7 @@ function fillRec(id,value) {
protected function drawFillJavascriptAttribute($attribute,$component_id,$component_value) { protected function drawFillJavascriptAttribute($attribute,$component_id,$component_value) {
if ($attribute->needJS('validate')) 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) { protected function drawValidateJavascriptAttribute($attribute,$component,$silence,$var_valid) {