Note to self: actually test changes before committing
Restored "New Saved Search..." label and ZoteroPane.newSearch(), since they're used in the context menu on "My Library"
This commit is contained in:
parent
ca98f7e7c3
commit
a908e087ac
|
@ -38,6 +38,7 @@ var ZoteroPane = new function()
|
|||
this.setHighlightedRowsCallback = setHighlightedRowsCallback;
|
||||
this.newItem = newItem;
|
||||
this.newCollection = newCollection;
|
||||
this.newSearch = newSearch;
|
||||
this.openAdvancedSearchWindow = openAdvancedSearchWindow;
|
||||
this.toggleTagSelector = toggleTagSelector;
|
||||
this.updateTagSelectorSize = updateTagSelectorSize;
|
||||
|
@ -379,6 +380,18 @@ var ZoteroPane = new function()
|
|||
Zotero.Collections.add(newName.value, parent);
|
||||
}
|
||||
|
||||
function newSearch()
|
||||
{
|
||||
var s = new Zotero.Search();
|
||||
s.addCondition('title', 'contains', '');
|
||||
|
||||
var untitled = Zotero.getString('pane.collections.untitled');
|
||||
untitled = Zotero.DB.getNextName('savedSearches', 'savedSearchName',
|
||||
Zotero.getString('pane.collections.untitled'));
|
||||
var io = {dataIn: {search: s, name: untitled}, dataOut: null};
|
||||
window.openDialog('chrome://zotero/content/searchDialog.xul','','chrome,modal',io);
|
||||
}
|
||||
|
||||
|
||||
function openAdvancedSearchWindow() {
|
||||
var s = new Zotero.Search();
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
<!ENTITY zotero.toolbar.removeItem.label "Remove Item...">
|
||||
<!ENTITY zotero.toolbar.newCollection.label "New Collection...">
|
||||
<!ENTITY zotero.toolbar.newSubcollection.label "New Subcollection...">
|
||||
<!ENTITY zotero.toolbar.newSavedSearch.label "New Saved Search...">
|
||||
<!ENTITY zotero.toolbar.tagSelector.label "Show/Hide Tag Selector">
|
||||
<!ENTITY zotero.toolbar.actions.label "Actions">
|
||||
<!ENTITY zotero.toolbar.import.label "Import...">
|
||||
|
|
Loading…
Reference in New Issue
Block a user