forked from extern/egroupware
partial fix for addressbook CRM view does not propagate prefered telephone number to phone popup, set_value() on et2_radiobox_ro is NOT working
This commit is contained in:
parent
4f8270fe41
commit
c00e79af78
@ -212,8 +212,11 @@ app.classes.addressbook = AppJS.extend(
|
|||||||
}
|
}
|
||||||
// change tel_prefer according to what
|
// change tel_prefer according to what
|
||||||
var tel_prefer = this.et2.getWidgetById('tel_prefer');
|
var tel_prefer = this.et2.getWidgetById('tel_prefer');
|
||||||
if (tel_prefer && tel_prefer.get_value && typeof what[tel_prefer.get_value()] != 'undefined')
|
if (tel_prefer)
|
||||||
tel_prefer.set_value(what[tel_prefer.get_value()]);
|
{
|
||||||
|
var val = tel_prefer.get_value ? tel_prefer.get_value() : tel_prefer.value;
|
||||||
|
if (typeof what[val] != 'undefined') tel_prefer.set_value(what[val]);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -192,6 +192,7 @@ var et2_radiobox_ro = et2_valueWidget.extend([et2_IDetachedDOM],
|
|||||||
* @param {string} _value
|
* @param {string} _value
|
||||||
*/
|
*/
|
||||||
set_value: function(_value) {
|
set_value: function(_value) {
|
||||||
|
this.value = _value;
|
||||||
if(_value == this.options.set_value) {
|
if(_value == this.options.set_value) {
|
||||||
this.span.text(this.options.ro_true);
|
this.span.text(this.options.ro_true);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user