Ensure the browser close confirmation is only shown when closing a Query Tool which is running in a separate browser tab. Fixes #4403
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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue