mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 01:29:05 +01:00
add rename of an item. caveat, does not rename dependent leafs yet
This commit is contained in:
parent
035e4b32b6
commit
efd4d85143
@ -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));
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user