diff --git a/etemplate/js/et2_dataview_controller_selection.js b/etemplate/js/et2_dataview_controller_selection.js index 05b5bdf9e1..4490c51562 100644 --- a/etemplate/js/et2_dataview_controller_selection.js +++ b/etemplate/js/et2_dataview_controller_selection.js @@ -182,10 +182,10 @@ var et2_dataview_selectionManager = Class.extend( false)); this._focusedEntry = null; } - // Mark the new given uid as focused if (_focused) { + console.log('et2_dataview_controller_selection::setFocused -> UID:'+_uid+' is focused by:'+this._actionObjectManager.name); var entry = this._focusedEntry = this._getRegisteredRowsEntry(_uid); this._updateEntryState(entry, egwSetBit(entry.state, EGW_AO_STATE_FOCUSED, true)); diff --git a/etemplate/js/et2_widget_tree.js b/etemplate/js/et2_widget_tree.js index 97381d7e53..94093f1c8b 100644 --- a/etemplate/js/et2_widget_tree.js +++ b/etemplate/js/et2_widget_tree.js @@ -391,6 +391,19 @@ var et2_tree = et2_inputWidget.extend( } }, + /** + * renameItem, renames an item by id + * @param _id ID of the node + * @param _newid ID of the node + * @param _label label to set + * @return void + */ + renameItem: function(_id, _newItemId, _label) { + if(this.input == null) return null; + this.input.changeItemId(_id,_newItemId); + if (typeof _label != 'undefined') this.input.setItemText(_newItemId,_label); + }, + /** * setLabel, sets the Label of of an item by id * @param _id ID of the node