Generate new saved search names within libraries, not globally
This commit is contained in:
parent
7447525d75
commit
c5527a82fb
1 changed files with 6 additions and 2 deletions
|
@ -951,8 +951,12 @@ var ZoteroPane = new function()
|
||||||
s.addCondition('title', 'contains', '');
|
s.addCondition('title', 'contains', '');
|
||||||
|
|
||||||
var untitled = Zotero.getString('pane.collections.untitled');
|
var untitled = Zotero.getString('pane.collections.untitled');
|
||||||
untitled = yield Zotero.DB.getNextName('savedSearches', 'savedSearchName',
|
untitled = yield Zotero.DB.getNextName(
|
||||||
Zotero.getString('pane.collections.untitled'));
|
s.libraryID,
|
||||||
|
'savedSearches',
|
||||||
|
'savedSearchName',
|
||||||
|
Zotero.getString('pane.collections.untitled')
|
||||||
|
);
|
||||||
var io = {dataIn: {search: s, name: untitled}, dataOut: null};
|
var io = {dataIn: {search: s, name: untitled}, dataOut: null};
|
||||||
window.openDialog('chrome://zotero/content/searchDialog.xul','','chrome,modal',io);
|
window.openDialog('chrome://zotero/content/searchDialog.xul','','chrome,modal',io);
|
||||||
if (!io.dataOut) {
|
if (!io.dataOut) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue