aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/logger.js2
-rw-r--r--lib/rhbzpage.js6
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;
+ }
});
}
};