www

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

commit 7ccc48b4ae0dc19b3133a19644f3dd0dff6fa43d
parent ba53f256d6c7bb3b26d9bec8f6e35d2a399f8cf7
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed,  1 Jul 2015 02:38:15 -0400

Don't show "without snapshot" save option in Fx connector for now

Option requires a new Standalone build with ba53f256d

Diffstat:
Mchrome/content/zotero/browser.js | 21++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)

diff --git a/chrome/content/zotero/browser.js b/chrome/content/zotero/browser.js @@ -531,15 +531,18 @@ var Zotero_Browser = new function() { }); popup.appendChild(menuitem); - menuitem = document.createElement("menuitem"); - menuitem.setAttribute("label", Zotero.getString('ingester.saveToZoteroAsWebPageWithoutSnapshot')); - menuitem.setAttribute("image", webPageIcon); - menuitem.setAttribute("class", "menuitem-iconic"); - menuitem.addEventListener("command", function (event) { - Zotero_Browser.saveAsWebPage(false); - event.stopPropagation(); - }); - popup.appendChild(menuitem); + // TEMP: Requires a new Standalone build + if (!Zotero.isConnector) { + menuitem = document.createElement("menuitem"); + menuitem.setAttribute("label", Zotero.getString('ingester.saveToZoteroAsWebPageWithoutSnapshot')); + menuitem.setAttribute("image", webPageIcon); + menuitem.setAttribute("class", "menuitem-iconic"); + menuitem.addEventListener("command", function (event) { + Zotero_Browser.saveAsWebPage(false); + event.stopPropagation(); + }); + popup.appendChild(menuitem); + } if (captureState == tab.CAPTURE_STATE_TRANSLATABLE) { popup.appendChild(document.createElement("menuseparator"));