public inbox for [email protected]  
help / color / mirror / Atom feed
From: Nikhil Mohite <[email protected]>
To: pgadmin-hackers <[email protected]>
Subject: [pgAdmin][RM-6964]: After removing database from properties tab, its properties is also displayed
Date: Thu, 18 Nov 2021 10:42:23 +0530
Message-ID: <CAOBg0ANpQ+acANL39U73qftqyR09YHwgw3HDWqhrf1PJk2sNZg@mail.gmail.com> (raw)

Hi Team,

Please find the attached patch for RM-6964:
<https://redmine.postgresql.org/issues/6964>After removing the database
from the properties tab, its properties are also displayed.

-- 
*Thanks & Regards,*
*Nikhil Mohite*
*Senior Software Engineer.*
*EDB Postgres* <https://www.enterprisedb.com/;
*Mob.No: +91-7798364578.*


Attachments:

  [application/octet-stream] RM-6964.patch (806B, 3-RM-6964.patch)
  download | inline diff:
diff --git a/web/pgadmin/browser/static/js/collection.js b/web/pgadmin/browser/static/js/collection.js
index 4ee9659e..4445892a 100644
--- a/web/pgadmin/browser/static/js/collection.js
+++ b/web/pgadmin/browser/static/js/collection.js
@@ -431,7 +431,10 @@ define([
                 pgBrowser.Events.trigger(
                   'pgadmin:browser:tree:refresh', sel_item || pgBrowser.tree.selected(), {
                     success: function() {
-                      sel_node.callbacks.selected.apply(sel_node, [sel_item]);
+                      setTimeout(function() {
+                        pgBrowser.tree.select(sel_item);
+                        sel_node.callbacks.selected.apply(sel_node, [sel_item]);
+                      }, 100);
                     },
                   });
               }


view thread (2+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: [pgAdmin][RM-6964]: After removing database from properties tab, its properties is also displayed
  In-Reply-To: <CAOBg0ANpQ+acANL39U73qftqyR09YHwgw3HDWqhrf1PJk2sNZg@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox