[rename] [feature] added merge feature to rename_doc
This commit is contained in:
parent
426e9c732e
commit
e9ef6be57f
@ -159,7 +159,7 @@ erpnext.AccountsChart = Class.extend({
|
|||||||
rename: function() {
|
rename: function() {
|
||||||
var node = this.selected_node();
|
var node = this.selected_node();
|
||||||
wn.model.rename_doc(this.ctype, node.data('label'), function(new_name) {
|
wn.model.rename_doc(this.ctype, node.data('label'), function(new_name) {
|
||||||
node.data('label', new_name).find(".tree-label").html(new_name);
|
node.parents("ul:first").parent().find(".tree-link:first").trigger("reload");
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
delete: function() {
|
delete: function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user