Respect modifier keys for new tab/window when generating report
This commit is contained in:
parent
04b0d26b97
commit
b9d7992ba8
2 changed files with 7 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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();"/>
|
||||
|
|
Loading…
Reference in a new issue