- fix preference links

- fix tab mode tooltip
- zotero://fullscreen opens standalone
This commit is contained in:
Simon Kornblith 2011-02-09 06:42:08 +00:00
parent 701845fa0a
commit 3fd0523b6e
6 changed files with 9 additions and 8 deletions

View File

@ -315,7 +315,7 @@ var ZoteroOverlay = new function()
} else { // Zotero is running in the pane } else { // Zotero is running in the pane
if(setMode === false) return; if(setMode === false) return;
// close Zotero pane // close Zotero pane
this.toggleDisplay(); this.toggleDisplay(false);
// open Zotero tab // open Zotero tab
this.isTab = true; this.isTab = true;

View File

@ -572,7 +572,7 @@ To add a new preference:
<label id="wordProcessors-noWordProcessorPluginsInstalled" width="45em" hidden="true"> <label id="wordProcessors-noWordProcessorPluginsInstalled" width="45em" hidden="true">
&zotero.preferences.cite.wordProcessors.noWordProcessorPluginsInstalled; &zotero.preferences.cite.wordProcessors.noWordProcessorPluginsInstalled;
</label> </label>
<label id="wordProcessors-getWordProcessorPlugins" class="text-link" href="http://www.zotero.org/support/word_processor_plugin_installation#word_processor_plugins_for_zotero_2.0" value="&zotero.preferences.cite.wordProcessors.getPlugins;"/> <label id="wordProcessors-getWordProcessorPlugins" class="text-link" href="&zotero.preferences.cite.wordProcessor.getPlugins.url;" value="&zotero.preferences.cite.wordProcessors.getPlugins;"/>
</tabpanel> </tabpanel>
<tabpanel orient="vertical" id="styles"> <tabpanel orient="vertical" id="styles">
<groupbox flex="1"> <groupbox flex="1">

View File

@ -389,7 +389,7 @@
</tooltip> </tooltip>
</toolbarbutton> </toolbarbutton>
<toolbarseparator id="zotero-fullscreen-close-separator"/> <toolbarseparator id="zotero-fullscreen-close-separator"/>
<toolbarbutton id="zotero-tb-fullscreen" tooltiptext="&zotero.toolbar.fullscreen.tooltip;" oncommand="ZoteroPane.toggleTab();" class="zotero-tb-button"/> <toolbarbutton id="zotero-tb-fullscreen" tooltiptext="&zotero.toolbar.tab.tooltip;" oncommand="ZoteroPane.toggleTab();" class="zotero-tb-button"/>
<toolbarbutton id="zotero-close-button" class="tabs-closebutton" oncommand="ZoteroOverlay.toggleDisplay()"/> <toolbarbutton id="zotero-close-button" class="tabs-closebutton" oncommand="ZoteroOverlay.toggleDisplay()"/>
</hbox> </hbox>
<!-- TODO: localize --> <!-- TODO: localize -->

View File

@ -104,6 +104,7 @@
<!ENTITY zotero.preferences.cite.wordProcessors "Word Processors"> <!ENTITY zotero.preferences.cite.wordProcessors "Word Processors">
<!ENTITY zotero.preferences.cite.wordProcessors.noWordProcessorPluginsInstalled "No word processor plug-ins are currently installed."> <!ENTITY zotero.preferences.cite.wordProcessors.noWordProcessorPluginsInstalled "No word processor plug-ins are currently installed.">
<!ENTITY zotero.preferences.cite.wordProcessors.getPlugins "Get word processor plug-ins..."> <!ENTITY zotero.preferences.cite.wordProcessors.getPlugins "Get word processor plug-ins...">
<!ENTITY zotero.preferences.cite.wordProcessors.getPlugins.url "http://www.zotero.org/support/word_processor_plugin_installation">
<!ENTITY zotero.preferences.cite.styles.styleManager "Style Manager"> <!ENTITY zotero.preferences.cite.styles.styleManager "Style Manager">
<!ENTITY zotero.preferences.cite.styles.styleManager.title "Title"> <!ENTITY zotero.preferences.cite.styles.styleManager.title "Title">

View File

@ -87,7 +87,7 @@
<!ENTITY zotero.toolbar.supportAndDocumentation "Support and Documentation"> <!ENTITY zotero.toolbar.supportAndDocumentation "Support and Documentation">
<!ENTITY zotero.toolbar.about.label "About Zotero"> <!ENTITY zotero.toolbar.about.label "About Zotero">
<!ENTITY zotero.toolbar.advancedSearch "Advanced Search"> <!ENTITY zotero.toolbar.advancedSearch "Advanced Search">
<!ENTITY zotero.toolbar.fullscreen.tooltip "Toggle Fullscreen Mode"> <!ENTITY zotero.toolbar.tab.tooltip "Toggle Tab Mode">
<!ENTITY zotero.toolbar.openURL.label "Locate"> <!ENTITY zotero.toolbar.openURL.label "Locate">
<!ENTITY zotero.toolbar.openURL.tooltip "Find through your local library"> <!ENTITY zotero.toolbar.openURL.tooltip "Find through your local library">

View File

@ -880,10 +880,10 @@ function ChromeExtensionHandler() {
.wrappedJSObject; .wrappedJSObject;
generateContent: try { generateContent: try {
var win = Components.classes["@mozilla.org/appshell/window-mediator;1"] var window = Components.classes["@mozilla.org/embedcomp/window-watcher;1"]
.getService(Components.interfaces.nsIWindowMediator) .getService(Components.interfaces.nsIWindowWatcher)
.getMostRecentWindow("navigator:browser"); .openWindow(null, 'chrome://zotero/content/standalone.xul', '',
win.ZoteroOverlay.toggleTab(true); 'chrome,centerscreen,resizable', null);
} }
catch (e) { catch (e) {
Zotero.debug(e); Zotero.debug(e);