mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
Fix tree widget's node loses its tooltip after setLabel
This commit is contained in:
parent
0ebc591d45
commit
2bbe5f4862
@ -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);
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user