Use double quotes for onchange to match everything else

This commit is contained in:
Nathan Gray 2012-02-02 20:22:09 +00:00
parent 670dcdcb71
commit 73c1ae8617

View File

@ -280,7 +280,7 @@ class date_widget
{
$dcell['type'] = 'html';
$dcell['name'] = 'str';
$jscaloptions = $cell['onchange'] ? ( "onchange='". ( (int)$cell['onchange'] === 1 ? "this.form.submit();'" : $cell['onchange']. "'" ) ) : '' ;
$jscaloptions = $cell['onchange'] ? ( ' onchange="'. ( (int)$cell['onchange'] === 1 ? 'this.form.submit();"' : $cell['onchange']. '"' ) ) : '' ;
$value['str'] = $this->jscal->input($name.'[str]',False,$value['Y'],$value['m'],$value['d'],lang($cell['help']),$jscaloptions,false,!($options & 128));
$n = 2; // no other fields
$options &= ~2; // no set-today button