www

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

commit d6c36ae9a35d5d1e55a4cefd2a145034e1c6eda7
parent a73b2403b0f775cc966141799e59a72303787e1c
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri, 26 May 2017 19:10:41 -0400

Update help URLs and move to config file

Diffstat:
Mchrome/content/zotero/standalone/standalone.js | 17+++++++++++------
Mresource/config.js | 5++++-
2 files changed, 15 insertions(+), 7 deletions(-)

diff --git a/chrome/content/zotero/standalone/standalone.js b/chrome/content/zotero/standalone/standalone.js @@ -156,12 +156,17 @@ const ZoteroStandalone = new function() { * Handles help menu requests */ this.openHelp = function(type) { - if(type === "troubleshooting") { - ZoteroPane.loadURI("http://www.zotero.org/support/getting_help"); - } else if(type === "feedback") { - ZoteroPane.loadURI("http://forums.zotero.org/categories/"); - } else { - ZoteroPane.loadURI("http://www.zotero.org/support/"); + switch (type) { + case "troubleshooting": + ZoteroPane.loadURI(ZOTERO_CONFIG.TROUBLESHOOTING_URL); + break; + + case "feedback": + ZoteroPane.loadURI(ZOTERO_CONFIG.FEEDBACK_URL); + break; + + default: + ZoteroPane.loadURI(ZOTERO_CONFIG.SUPPORT_URL); } } diff --git a/resource/config.js b/resource/config.js @@ -16,7 +16,10 @@ var ZOTERO_CONFIG = { BOOKMARKLET_ORIGIN: 'https://www.zotero.org', HTTP_BOOKMARKLET_ORIGIN: 'http://www.zotero.org', BOOKMARKLET_URL: 'https://www.zotero.org/bookmarklet/', - PDF_TOOLS_URL: "https://www.zotero.org/download/xpdf/" + PDF_TOOLS_URL: "https://www.zotero.org/download/xpdf/", + SUPPORT_URL: "https://www.zotero.org/support/", + TROUBLESHOOTING_URL: "https://www.zotero.org/support/getting_help", + FEEDBACK_URL: "https://forums.zotero.org/", }; EXPORTED_SYMBOLS = ["ZOTERO_CONFIG"];