mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-31 02:21:40 +01:00
Make sure the node is available before addressing its tooltip, fixes broken rename folder action in mail
This commit is contained in:
parent
c9cc1f2e63
commit
5f21737a42
@ -716,7 +716,8 @@ var et2_tree = (function(){ "use strict"; return et2_inputWidget.extend(
|
|||||||
*/
|
*/
|
||||||
setLabel: function(_id, _label, _tooltip) {
|
setLabel: function(_id, _label, _tooltip) {
|
||||||
if(this.input == null) return null;
|
if(this.input == null) return null;
|
||||||
var tooltip = _tooltip || this.getNode(_id).tooltip;
|
var tooltip = _tooltip || (this.getNode(_id) && this.getNode(_id).tooltip ?
|
||||||
|
this.getNode(_id).tooltip : "");
|
||||||
this.input.setItemText(_id, this._htmlencode(_label), tooltip);
|
this.input.setItemText(_id, this._htmlencode(_label), tooltip);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user