mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-27 16:57:00 -06:00
Improvements to frame management.
This commit is contained in:
parent
dd5e86bcf4
commit
9e2d349591
@ -39,10 +39,25 @@ function(_, pgAdmin) {
|
||||
myPanel.layout().addItem($frameArea);
|
||||
that.panel = myPanel;
|
||||
var frame = new wcIFrame($frameArea, myPanel);
|
||||
$(myPanel).data('frameInitialized', false);
|
||||
$(myPanel).data('embeddedFrame', frame);
|
||||
|
||||
if (that.url != '') {
|
||||
setTimeout(function() { frame.openURL(that.url); }, 500);
|
||||
if (that.url != '' && that.url != 'about:blank') {
|
||||
setTimeout(function() {
|
||||
frame.openURL(that.url);
|
||||
$(myPanel).data('frameInitialized', true);
|
||||
pgBrowser.Events.trigger(
|
||||
'pgadmin-browser:frame:urlloaded:' + that.name, frame,
|
||||
that.url, self
|
||||
);
|
||||
}, 50);
|
||||
} else {
|
||||
frame.openURL('about:blank');
|
||||
$(myPanel).data('frameInitialized', true);
|
||||
pgBrowser.Events.trigger(
|
||||
'pgadmin-browser:frame:urlloaded:' + that.name, frame,
|
||||
that.url, self
|
||||
);
|
||||
}
|
||||
|
||||
if (that.events && _.isObject(that.events)) {
|
||||
|
Loading…
Reference in New Issue
Block a user