mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-17 12:01:20 +02:00
Fix tree widget's node loses its tooltip after setLabel
This commit is contained in:
@ -711,11 +711,13 @@ var et2_tree = (function(){ "use strict"; return et2_inputWidget.extend(
|
||||
*
|
||||
* @param _id ID of the node
|
||||
* @param _label label to set
|
||||
* @param _tooltip new tooltip, default is previous set tooltip
|
||||
* @return void
|
||||
*/
|
||||
setLabel: function(_id, _label) {
|
||||
setLabel: function(_id, _label, _tooltip) {
|
||||
if(this.input == null) return null;
|
||||
this.input.setItemText(_id, this._htmlencode(_label));
|
||||
var tooltip = _tooltip || this.getNode(_id).tooltip;
|
||||
this.input.setItemText(_id, this._htmlencode(_label), tooltip);
|
||||
},
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user