From 8b145a758d12871e705adbd7689598edd5dfa6c3 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Thu, 20 Jan 2011 16:00:56 +0100 Subject: Upgrading to the latest API .activate() return back again. --- data/bzpage.js | 4 ++-- data/rhbzpage.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'data') diff --git a/data/bzpage.js b/data/bzpage.js index cb539dc..37c53d2 100644 --- a/data/bzpage.js +++ b/data/bzpage.js @@ -1029,8 +1029,8 @@ BZPage.prototype.queryInNewTab = function(text, component, product) { tabs.open({ url: urlStr, inBackground: true, - onOpen: function (t) { - tabs.activeTab = t; + onReady: function (t) { + t.activate(); } }); } diff --git a/data/rhbzpage.js b/data/rhbzpage.js index 10090a7..3cb21e6 100644 --- a/data/rhbzpage.js +++ b/data/rhbzpage.js @@ -588,8 +588,8 @@ RHBugzillaPage.prototype.queryUpstream = function() { tabs.open({ url: urlBase + text, inBackground: true, - onOpen: function (tab) { - tabs.activeTab = tab; + onReady: function (tab) { + tab.activate(); } }); } -- cgit