commit b9d7992ba860092f40d8ab5affd4379e5ac51185
parent 04b0d26b977a35d042101764a04adbe560cc66ec
Author: Dan Stillman <dstillman@zotero.org>
Date: Wed, 25 Apr 2012 20:43:58 -0400
Respect modifier keys for new tab/window when generating report
Diffstat:
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/chrome/content/zotero/reportInterface.js b/chrome/content/zotero/reportInterface.js
@@ -33,7 +33,7 @@ var Zotero_Report_Interface = new function() {
/*
* Load a report for the currently selected collection
*/
- function loadCollectionReport() {
+ function loadCollectionReport(event) {
var queryString = '';
var col = ZoteroPane_Local.getSelectedCollection();
@@ -46,7 +46,7 @@ var Zotero_Report_Interface = new function() {
if (col) {
ZoteroPane_Local.loadURI('zotero://report/collection/'
+ Zotero.Collections.getLibraryKeyHash(col)
- + '/html/report.html' + queryString);
+ + '/html/report.html' + queryString, event);
return;
}
@@ -54,7 +54,7 @@ var Zotero_Report_Interface = new function() {
if (s) {
ZoteroPane_Local.loadURI('zotero://report/search/'
+ Zotero.Searches.getLibraryKeyHash(s)
- + '/html/report.html' + queryString);
+ + '/html/report.html' + queryString, event);
return;
}
@@ -65,7 +65,7 @@ var Zotero_Report_Interface = new function() {
/*
* Load a report for the currently selected items
*/
- function loadItemReport() {
+ function loadItemReport(event) {
var items = ZoteroPane_Local.getSelectedItems();
if (!items || !items.length) {
@@ -77,7 +77,7 @@ var Zotero_Report_Interface = new function() {
keyHashes.push(Zotero.Items.getLibraryKeyHash(item));
}
- ZoteroPane_Local.loadURI('zotero://report/items/' + keyHashes.join('-') + '/html/report.html');
+ ZoteroPane_Local.loadURI('zotero://report/items/' + keyHashes.join('-') + '/html/report.html', event);
}
diff --git a/chrome/content/zotero/zoteroPane.xul b/chrome/content/zotero/zoteroPane.xul
@@ -252,7 +252,7 @@
<menuitem oncommand="Zotero_File_Interface.exportCollection();"/>
<menuitem oncommand="Zotero_File_Interface.bibliographyFromCollection();"/>
<menuitem label="&zotero.toolbar.export.label;" oncommand="Zotero_File_Interface.exportFile()"/>
- <menuitem oncommand="Zotero_Report_Interface.loadCollectionReport()"/>
+ <menuitem oncommand="Zotero_Report_Interface.loadCollectionReport(event)"/>
<menuitem label="&zotero.toolbar.emptyTrash.label;" oncommand="ZoteroPane_Local.emptyTrash();"/>
<menuitem label="&zotero.toolbar.newCollection.label;" oncommand="ZoteroPane_Local.createCommonsBucket();"/><!--TODO localize -->
<menuitem label="Refresh" oncommand="ZoteroPane_Local.refreshCommonsBucket();"/><!--TODO localize -->
@@ -282,7 +282,7 @@
<menuseparator/>
<menuitem oncommand="Zotero_File_Interface.exportItems();"/>
<menuitem oncommand="Zotero_File_Interface.bibliographyFromItems();"/>
- <menuitem oncommand="Zotero_Report_Interface.loadItemReport()"/>
+ <menuitem oncommand="Zotero_Report_Interface.loadItemReport(event)"/>
<menuseparator/>
<menuitem oncommand="Zotero_RecognizePDF.recognizeSelected();"/>
<menuitem oncommand="ZoteroPane_Local.createParentItemsFromSelected();"/>