jQuery fixes
This commit is contained in:
parent
678a77773b
commit
e35e6f2046
|
@ -1849,7 +1849,7 @@ class htmlTableExtendedInputCheckbox extends htmlInputCheckbox {
|
||||||
* @return array List of input field names and their type (name => type)
|
* @return array List of input field names and their type (name => type)
|
||||||
*/
|
*/
|
||||||
function generateHTML($module, $input, $values, $restricted, &$tabindex, $scope) {
|
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) {
|
if ($this->labelFirst) {
|
||||||
echo '<div class="nowrap" ' . $onClick . '>';
|
echo '<div class="nowrap" ' . $onClick . '>';
|
||||||
echo $this->label;
|
echo $this->label;
|
||||||
|
|
Loading…
Reference in New Issue