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

Option requires a new Standalone build with ba53f256d
This commit is contained in:
Dan Stillman 2015-07-01 02:38:15 -04:00
parent ba53f256d6
commit 7ccc48b4ae

View File

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