From e9ef6be57f4c7d8db817d6c226729725f1fb7245 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Tue, 26 Mar 2013 17:15:49 +0530 Subject: [PATCH] [rename] [feature] added merge feature to rename_doc --- accounts/page/accounts_browser/accounts_browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts/page/accounts_browser/accounts_browser.js b/accounts/page/accounts_browser/accounts_browser.js index 97c8554ac8..2e8cc820a6 100644 --- a/accounts/page/accounts_browser/accounts_browser.js +++ b/accounts/page/accounts_browser/accounts_browser.js @@ -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() {