mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-16 18:31:26 +01:00
change default value for unset checkbox to be in line with old eTemplate, using "" that evaluates in PHP and javascript to false and not string "false"
This commit is contained in:
parent
579e0da787
commit
55722f4520
@ -35,13 +35,13 @@ var et2_checkbox = et2_inputWidget.extend(
|
|||||||
"unselected_value": {
|
"unselected_value": {
|
||||||
"name": "Unset value",
|
"name": "Unset value",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "false",
|
"default": "",
|
||||||
"description": "Value when not checked"
|
"description": "Value when not checked"
|
||||||
},
|
},
|
||||||
"ro_true": {
|
"ro_true": {
|
||||||
"name": "Read only selected",
|
"name": "Read only selected",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "x",
|
"default": "X ",
|
||||||
"description": "What should be displayed when readonly and selected"
|
"description": "What should be displayed when readonly and selected"
|
||||||
},
|
},
|
||||||
"ro_false": {
|
"ro_false": {
|
||||||
@ -147,7 +147,7 @@ var et2_checkbox_ro = et2_checkbox.extend(
|
|||||||
|
|
||||||
this.setDOMNode(this.span[0]);
|
this.setDOMNode(this.span[0]);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* note: checkbox is checked if even there is a value but not only if the _value is only "true"
|
* note: checkbox is checked if even there is a value but not only if the _value is only "true"
|
||||||
* it's an exceptional validation for cases that we pass non boolean values as checkbox _value
|
* it's an exceptional validation for cases that we pass non boolean values as checkbox _value
|
||||||
|
Loading…
Reference in New Issue
Block a user