fix handling of tab switching in Fx4
This commit is contained in:
parent
7ecb788615
commit
d9fb09c1d6
|
@ -257,19 +257,19 @@ var Zotero_Browser = new function() {
|
||||||
* When chrome loads, register our event handlers with the appropriate interfaces
|
* When chrome loads, register our event handlers with the appropriate interfaces
|
||||||
*/
|
*/
|
||||||
function chromeLoad() {
|
function chromeLoad() {
|
||||||
this.tabbrowser = document.getElementById("content");
|
this.tabbrowser = gBrowser;
|
||||||
this.appcontent = document.getElementById("appcontent");
|
this.appcontent = document.getElementById("appcontent");
|
||||||
this.statusImage = document.getElementById("zotero-status-image");
|
this.statusImage = document.getElementById("zotero-status-image");
|
||||||
|
|
||||||
// this gives us onLocationChange, for updating when tabs are switched/created
|
// this gives us onLocationChange, for updating when tabs are switched/created
|
||||||
this.tabbrowser.addEventListener("TabClose",
|
gBrowser.tabContainer.addEventListener("TabClose",
|
||||||
function(e) {
|
function(e) {
|
||||||
//Zotero.debug("TabClose");
|
//Zotero.debug("TabClose");
|
||||||
Zotero_Browser.tabClose(e);
|
Zotero_Browser.tabClose(e);
|
||||||
}, false);
|
}, false);
|
||||||
this.tabbrowser.addEventListener("TabSelect",
|
gBrowser.tabContainer.addEventListener("TabSelect",
|
||||||
function(e) {
|
function(e) {
|
||||||
//Zotero.debug("TabSelect");
|
Zotero.debug("TabSelect");
|
||||||
Zotero_Browser.updateStatus();
|
Zotero_Browser.updateStatus();
|
||||||
}, false);
|
}, false);
|
||||||
// this is for pageshow, for updating the status of the book icon
|
// this is for pageshow, for updating the status of the book icon
|
||||||
|
|
Loading…
Reference in New Issue
Block a user