From 79d6d50dcc86df1413bb54caafeefdfc76a2e6a6 Mon Sep 17 00:00:00 2001 From: Ashesh Vashi Date: Mon, 21 Mar 2016 22:44:21 +0530 Subject: [PATCH] The minimal refresh functionality, which will not unload the whole tree, when 'refresh' on any node was selected. --- web/pgadmin/browser/templates/browser/js/node.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/pgadmin/browser/templates/browser/js/node.js b/web/pgadmin/browser/templates/browser/js/node.js index a25cfa8ef..a6b119c9e 100644 --- a/web/pgadmin/browser/templates/browser/js/node.js +++ b/web/pgadmin/browser/templates/browser/js/node.js @@ -545,12 +545,13 @@ function($, _, S, pgAdmin, Menu, Backbone, Alertify, pgBrowser, Backform) { return true; }, - refresh: function(i) { + refresh: function(n, i) { var self = this, t = pgBrowser.tree, d = t.itemData(i); - t.unload(i); + if (t.isInode(i) && t.wasLoad(i)) + t.unload(i); t.setInode(i, (d && d.inode) || false); t.deselect(i);