diff --git a/chrome/content/zotero/browser.js b/chrome/content/zotero/browser.js index e9159e168..86d65b173 100644 --- a/chrome/content/zotero/browser.js +++ b/chrome/content/zotero/browser.js @@ -302,11 +302,11 @@ var Zotero_Browser = new function() { var reset = document.getElementById('cmd_fullZoomReset'); } - reduce.addEventListener("command", + if(reduce) reduce.addEventListener("command", function(e) { Zotero_Browser.resize(e) }, false); - enlarge.addEventListener("command", + if(enlarge) enlarge.addEventListener("command", function(e) { Zotero_Browser.resize(e) }, false); - reset.addEventListener("command", + if(reset) reset.addEventListener("command", function(e) { Zotero_Browser.resize(e) }, false); } diff --git a/chrome/content/zotero/overlay.js b/chrome/content/zotero/overlay.js index c154bc133..87ba97bb9 100644 --- a/chrome/content/zotero/overlay.js +++ b/chrome/content/zotero/overlay.js @@ -218,6 +218,11 @@ var ZoteroPane = new function() document.getElementById("zotero-tb-search-label").hidden = false; document.getElementById("zotero-tb-search").setAttribute("type", "conditional-timed"); } + + if(Zotero.isStandalone) { + this.toggleDisplay(); + this.fullScreen(true); + } } diff --git a/chrome/content/zotero/overlay.xul b/chrome/content/zotero/overlay.xul index d7af99ae5..2f8958a9b 100644 --- a/chrome/content/zotero/overlay.xul +++ b/chrome/content/zotero/overlay.xul @@ -475,49 +475,51 @@ + + + + + +%globalDTD; + +%globalRegionDTD; + +%charsetDTD; + +%textcontextDTD; + +%standaloneDTD; +]> + + +