Fix tree widget's node loses its tooltip after setLabel

This commit is contained in:
Hadi Nategh 2017-09-07 16:32:07 +02:00
parent 0ebc591d45
commit 2bbe5f4862

View File

@ -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);
},
/**