mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Dialog Help was broken in case where query tool/Debugger opens in new browser tab. Fixes #2310
This commit is contained in:
parent
8005b05292
commit
08ff9d7422
@ -705,6 +705,7 @@ function(require, $, _, S, Bootstrap, pgAdmin, Alertify, CodeMirror) {
|
|||||||
pnlSqlHelp.focus();
|
pnlSqlHelp.focus();
|
||||||
iframe.openURL(fullUrl);
|
iframe.openURL(fullUrl);
|
||||||
} else if(type == "dialog_help") {
|
} else if(type == "dialog_help") {
|
||||||
|
if(this.docker) {
|
||||||
// See if we can find an existing panel, if not, create one
|
// See if we can find an existing panel, if not, create one
|
||||||
pnlDialogHelp = this.docker.findPanels('pnl_online_help')[0];
|
pnlDialogHelp = this.docker.findPanels('pnl_online_help')[0];
|
||||||
|
|
||||||
@ -719,6 +720,12 @@ function(require, $, _, S, Bootstrap, pgAdmin, Alertify, CodeMirror) {
|
|||||||
|
|
||||||
pnlDialogHelp.focus();
|
pnlDialogHelp.focus();
|
||||||
iframe.openURL(url);
|
iframe.openURL(url);
|
||||||
|
} else {
|
||||||
|
// We have added new functionality of opening Query tool & debugger in new
|
||||||
|
// browser tab, In that case we will not have docker object available
|
||||||
|
// so we will open dialog help in new browser tab
|
||||||
|
window.open(url, '_blank');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user