www

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

commit 5197f1e78b878f8fcbb42d6f749a43e7bfa1c905
parent 745e4de7cac81d29430890ce108c1aadd36a5c90
Author: Simon Kornblith <simon@simonster.com>
Date:   Mon, 11 Jul 2011 14:54:51 +0000

- Closes #1793, Add update button to standalone

A "Check for Updates" menu item is now available (under the Zotero menu on OS X, or the Help menu on other platforms). This will currently give a 404 unless you build Zotero Standalone as from the "beta" channel.

- Don't add About menu option to help menu on OS X (only to Zotero menu)


Diffstat:
Mchrome/content/zotero-platform/mac/standalone/menuOverlay.xul | 4----
Mchrome/content/zotero/standalone/standalone.js | 7+++++++
Mchrome/content/zotero/standalone/standalone.xul | 4++++
3 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/chrome/content/zotero-platform/mac/standalone/menuOverlay.xul b/chrome/content/zotero-platform/mac/standalone/menuOverlay.xul @@ -81,10 +81,6 @@ <!-- nsMenuBarX hides these and uses them to build the Application menu. --> <menupopup id="menu_FilePopup"> - <menuitem id="aboutName" - accesskey="&aboutProduct.accesskey;" - label="&aboutProduct.label;" - oncommand="ZoteroPane.openAboutDialog();"/> <menuitem id="menu_preferences" label="&preferencesCmdMac.label;" key="key_preferencesCmdMac" diff --git a/chrome/content/zotero/standalone/standalone.js b/chrome/content/zotero/standalone/standalone.js @@ -139,6 +139,13 @@ var ZoteroStandalone = new function() } /** + * Checks for updates + */ + this.checkForUpdates = function() { + window.open('chrome://mozapps/content/update/updates.xul', 'updateChecker', 'chrome,centerscreen'); + } + + /** * Called before standalone window is closed */ this.onUnload = function() { diff --git a/chrome/content/zotero/standalone/standalone.xul b/chrome/content/zotero/standalone/standalone.xul @@ -198,6 +198,10 @@ accesskey="&helpReportErrors.accesskey;" label="&helpReportErrors.label;" command="cmd_zotero_reportErrors"/> + <menuitem id="checkForUpdates" + accesskey="&helpCheckForUpdates.accesskey;" + label="&helpCheckForUpdates.label;" + oncommand="ZoteroStandalone.checkForUpdates();"/> <menuitem id="aboutName" accesskey="&aboutProduct.accesskey;" label="&aboutProduct.label;"