Support for add-ons
This commit is contained in:
parent
50cc1fcb71
commit
d12d639842
3 changed files with 19 additions and 0 deletions
|
@ -99,6 +99,21 @@ var ZoteroStandalone = new function()
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Opens a URL in the basic viewer
|
||||
*/
|
||||
this.openInViewer = function(uri) {
|
||||
var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"]
|
||||
.getService(Components.interfaces.nsIWindowMediator);
|
||||
var win = wm.getMostRecentWindow("zotero:basicViewer");
|
||||
if(win) {
|
||||
win.loadURI(uri);
|
||||
} else {
|
||||
window.openDialog("chrome://zotero/content/standalone/basicViewer.xul",
|
||||
"basicViewer", "chrome,resizable,centerscreen", uri);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles help menu requests
|
||||
*/
|
||||
|
|
|
@ -168,6 +168,9 @@
|
|||
command="cmd_zotero_createTimeline"/>
|
||||
<menuitem id="menu_rtfScan" label="&zotero.toolbar.rtfScan.label;"
|
||||
command="cmd_zotero_rtfScan"/>
|
||||
<menuseparator/>
|
||||
<menuitem id="menu_addons" label="&addons.label;"
|
||||
oncommand="ZoteroStandalone.openInViewer('about:addons')"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
|
||||
|
|
|
@ -63,6 +63,7 @@
|
|||
<!--TOOLS MENU-->
|
||||
<!ENTITY toolsMenu.label "Tools">
|
||||
<!ENTITY toolsMenu.accesskey "T">
|
||||
<!ENTITY addons.label "Add-ons">
|
||||
|
||||
<!--WINDOW MENU-->
|
||||
<!ENTITY minimizeWindow.key "m">
|
||||
|
|
Loading…
Add table
Reference in a new issue