jQuery fixes

This commit is contained in:
Roland Gruber 2013-03-16 14:35:41 +00:00
parent 678a77773b
commit e35e6f2046
1 changed files with 1 additions and 1 deletions

View File

@ -1849,7 +1849,7 @@ class htmlTableExtendedInputCheckbox extends htmlInputCheckbox {
* @return array List of input field names and their type (name => type)
*/
function generateHTML($module, $input, $values, $restricted, &$tabindex, $scope) {
$onClick = 'onClick="jQuery(\'#' . $this->name . '\').attr(\'checked\',!jQuery(\'#' . $this->name . '\').attr(\'checked\')); jQuery(\'#' . $this->name . '\').change();"';
$onClick = 'onClick="jQuery(\'#' . $this->name . '\').prop(\'checked\',!jQuery(\'#' . $this->name . '\').prop(\'checked\')); jQuery(\'#' . $this->name . '\').change();"';
if ($this->labelFirst) {
echo '<div class="nowrap" ' . $onClick . '>';
echo $this->label;