www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit e26b292324a79314d1beb934d1a1b6568e3a0c2e
parent 90b7380563a5dc5196f119c9f2b35174c24a548f
Author: Simon Kornblith <simon@simonster.com>
Date:   Thu,  3 Feb 2011 07:20:02 +0000

let toggleTab() take an explicit mode argument


Diffstat:
Mchrome/content/zotero/overlay.js | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/overlay.js b/chrome/content/zotero/overlay.js @@ -302,9 +302,10 @@ var ZoteroOverlay = new function() /** * Toggle between Zotero as a tab and Zotero as a pane */ - this.toggleTab = function() { + this.toggleTab = function(setMode) { var tab = this.findZoteroTab(); if(tab) { // Zotero is running in a tab + if(setMode) return; // don't do anything if Zotero tab is the only tab if(tab && gBrowser.tabs.length === 1) return; @@ -316,6 +317,7 @@ var ZoteroOverlay = new function() this.isTab = false; this.toggleDisplay(); } else { // Zotero is running in the pane + if(setMode === false) return; // close Zotero pane this.toggleDisplay();