The minimal refresh functionality, which will not unload the whole

tree, when 'refresh' on any node was selected.
This commit is contained in:
Ashesh Vashi
2016-03-21 22:44:21 +05:30
parent b056ba7bb7
commit 79d6d50dcc

View File

@@ -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);