Update help URLs and move to config file
This commit is contained in:
parent
a73b2403b0
commit
d6c36ae9a3
2 changed files with 15 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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"];
|
||||
|
|
Loading…
Reference in a new issue