[rename] [feature] added merge feature to rename_doc

This commit is contained in:
Rushabh Mehta 2013-03-26 17:15:49 +05:30
parent 426e9c732e
commit e9ef6be57f

View File

@ -159,7 +159,7 @@ erpnext.AccountsChart = Class.extend({
rename: function() {
var node = this.selected_node();
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() {