diff --git a/etemplate/js/et2_widget_tree.js b/etemplate/js/et2_widget_tree.js index 7817ffcebb..355b818166 100644 --- a/etemplate/js/et2_widget_tree.js +++ b/etemplate/js/et2_widget_tree.js @@ -696,6 +696,16 @@ var et2_tree = et2_inputWidget.extend( return is_open; }, + /** + * reSelectItem, reselects an item by id + * @param _id ID of the node + */ + reSelectItem: function(_id) + { + if (this.input == null) return null; + this.input.selectItem(_id,false,false); + }, + /** * Set images for a specific node or all new nodes (default) *