mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-09-03 20:52:57 -05:00
Ensure the browser close confirmation is only shown when closing a Query Tool which is running in a separate browser tab. Fixes #4403
This commit is contained in:
committed by
Dave Page
parent
173b812b93
commit
2451db8797
@@ -13,3 +13,5 @@ New features
|
||||
|
||||
Bug fixes
|
||||
*********
|
||||
|
||||
| `Bug #4403 <https://redmine.postgresql.org/issues/4403>`_ - Ensure the browser close confirmation is only shown when closing a Query Tool which is running in a separate browser tab.
|
||||
@@ -584,8 +584,6 @@ define('tools.querytool', [
|
||||
};
|
||||
});
|
||||
|
||||
pgBrowser.bind_beforeunload();
|
||||
|
||||
/* If the screen width is small and we hover over the Explain Options,
|
||||
* the submenu goes behind the screen on the right side.
|
||||
* Below logic will make it appear on the left.
|
||||
@@ -631,6 +629,7 @@ define('tools.querytool', [
|
||||
* instead, a poller is set up who will check
|
||||
*/
|
||||
if(self.preferences.new_browser_tab) {
|
||||
pgBrowser.bind_beforeunload();
|
||||
setInterval(()=>{
|
||||
if(window.opener.pgAdmin) {
|
||||
self.reflectPreferences();
|
||||
|
||||
Reference in New Issue
Block a user