Improvements to frame management.

This commit is contained in:
Ashesh Vashi 2016-04-13 11:25:04 +01:00 committed by Dave Page
parent dd5e86bcf4
commit 9e2d349591

View File

@ -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)) {