diff options
author | Matěj Cepl <mcepl@redhat.com> | 2010-07-24 23:18:11 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2010-07-24 23:18:11 +0200 |
commit | d428a8122cbc803ef99acd6db03323ceb5b76f53 (patch) | |
tree | e74fa386274712a260fef11ff752c333d74a765c /lib | |
parent | c6b878fcd9291c6f0eb310f6f9c76cd0b6289030 (diff) | |
download | bugzilla-triage-d428a8122cbc803ef99acd6db03323ceb5b76f53.tar.gz |
Now when we know how to load in background, do it always.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/logger.js | 2 | ||||
-rw-r--r-- | lib/rhbzpage.js | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lib/logger.js b/lib/logger.js index 2e8101f..71514c9 100644 --- a/lib/logger.js +++ b/lib/logger.js @@ -112,11 +112,13 @@ Logger.prototype.createBlankPage = function (ttl, bodyBuildCB) { var logTab = tabs.open({ url: "about:blank", + inBackground: true, onOpen: function (tab) { var otherDoc = tab.contentDocument; otherDoc.title = title; otherDoc.body.innerHTML = "<h1>" + title + "</h1>"; bodyBuildCB.call(that, otherDoc.body); + tabs.activeTab = tab; } }); }; diff --git a/lib/rhbzpage.js b/lib/rhbzpage.js index 61c9fc7..4458e28 100644 --- a/lib/rhbzpage.js +++ b/lib/rhbzpage.js @@ -649,7 +649,11 @@ RHBugzillaPage.prototype.queryUpstream = function() { var queryUpstreamBugsURLArray = this.constantData.queryUpstreamBug; var urlBase = util.filterByRegexp(queryUpstreamBugsURLArray, this.component); tabs.open({ - url: urlBase + text + url: urlBase + text, + inBackground: true, + onOpen: function (tab) { + tabs.activeTab = tab; + } }); } }; |