mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
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
|
||||
var tel_prefer = this.et2.getWidgetById('tel_prefer');
|
||||
if (tel_prefer && tel_prefer.get_value && typeof what[tel_prefer.get_value()] != 'undefined')
|
||||
tel_prefer.set_value(what[tel_prefer.get_value()]);
|
||||
if (tel_prefer)
|
||||
{
|
||||
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
|
||||
*/
|
||||
set_value: function(_value) {
|
||||
this.value = _value;
|
||||
if(_value == this.options.set_value) {
|
||||
this.span.text(this.options.ro_true);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user