mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-14 03:54:29 +01:00
Backport commit r48259, committed by Nathan Gray. Remove deprecated (& internal) __proto__.
Fixes error in IE with calendar edit.
This commit is contained in:
parent
280ae16008
commit
0f83b2be95
@ -96,7 +96,7 @@ var et2_checkbox = et2_inputWidget.extend(
|
||||
set_value: function(_value) {
|
||||
if(_value != this.value) {
|
||||
if(_value == this.options.selected_value ||
|
||||
_value && this.options.selected_value == this.__proto__.attributes.selected_value["default"] &&
|
||||
_value && this.options.selected_value == this.attributes.selected_value["default"] &&
|
||||
_value != this.options.unselected_value) {
|
||||
this.input.prop("checked", true);
|
||||
} else {
|
||||
@ -153,7 +153,7 @@ var et2_checkbox_ro = et2_checkbox.extend(
|
||||
* it's an exceptional validation for cases that we pass non boolean values as checkbox _value
|
||||
*/
|
||||
set_value: function(_value) {
|
||||
if(_value == this.options.selected_value ||_value && this.options.selected_value == this.__proto__.attributes.selected_value["default"] &&
|
||||
if(_value == this.options.selected_value ||_value && this.options.selected_value == this.attributes.selected_value["default"] &&
|
||||
_value != this.options.unselected_value) {
|
||||
this.span.text(this.options.ro_true);
|
||||
this.value = _value;
|
||||
|
Loading…
Reference in New Issue
Block a user