mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
The minimal refresh functionality, which will not unload the whole
tree, when 'refresh' on any node was selected.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user