mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Etemplate: Only re-set label if the new value is different
Fixes initialization could clear the link text if value was set first
This commit is contained in:
parent
bfea641321
commit
488f01aea9
@ -303,8 +303,8 @@ export class et2_url_ro extends et2_valueWidget {
|
||||
* @param _value
|
||||
*/
|
||||
set_label(_value) {
|
||||
this.options.label = _value;
|
||||
if (this.span) {
|
||||
if (this.span && this.options.label !== _value) {
|
||||
this.options.label = _value;
|
||||
this.span.text(_value);
|
||||
}
|
||||
}
|
||||
|
@ -362,9 +362,9 @@ export class et2_url_ro extends et2_valueWidget
|
||||
*/
|
||||
set_label(_value)
|
||||
{
|
||||
this.options.label = _value;
|
||||
if(this.span)
|
||||
if(this.span && this.options.label !== _value)
|
||||
{
|
||||
this.options.label = _value;
|
||||
this.span.text(_value);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user