Removing New Saved Search button, which is redundant now that there's an advanced search window with a Save Search button
This commit is contained in:
parent
41433841e4
commit
0e62e3734a
|
@ -38,7 +38,6 @@ var ZoteroPane = new function()
|
||||||
this.setHighlightedRowsCallback = setHighlightedRowsCallback;
|
this.setHighlightedRowsCallback = setHighlightedRowsCallback;
|
||||||
this.newItem = newItem;
|
this.newItem = newItem;
|
||||||
this.newCollection = newCollection;
|
this.newCollection = newCollection;
|
||||||
this.newSearch = newSearch;
|
|
||||||
this.openAdvancedSearchWindow = openAdvancedSearchWindow;
|
this.openAdvancedSearchWindow = openAdvancedSearchWindow;
|
||||||
this.toggleTagSelector = toggleTagSelector;
|
this.toggleTagSelector = toggleTagSelector;
|
||||||
this.updateTagSelectorSize = updateTagSelectorSize;
|
this.updateTagSelectorSize = updateTagSelectorSize;
|
||||||
|
@ -380,18 +379,6 @@ var ZoteroPane = new function()
|
||||||
Zotero.Collections.add(newName.value, parent);
|
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() {
|
function openAdvancedSearchWindow() {
|
||||||
var s = new Zotero.Search();
|
var s = new Zotero.Search();
|
||||||
|
|
|
@ -105,7 +105,6 @@
|
||||||
<vbox flex="1">
|
<vbox flex="1">
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<toolbarbutton id="zotero-tb-collection-add" tooltiptext="&zotero.toolbar.newCollection.label;" oncommand="ZoteroPane.newCollection()"/>
|
<toolbarbutton id="zotero-tb-collection-add" tooltiptext="&zotero.toolbar.newCollection.label;" oncommand="ZoteroPane.newCollection()"/>
|
||||||
<toolbarbutton id="zotero-tb-collection-addsearch" tooltiptext="&zotero.toolbar.newSavedSearch.label;" oncommand="ZoteroPane.newSearch();"/>
|
|
||||||
<spacer flex="1"/>
|
<spacer flex="1"/>
|
||||||
<toolbarbutton id="zotero-tb-tag-selector" tooltiptext="&zotero.toolbar.tagSelector.label;" oncommand="ZoteroPane.toggleTagSelector()"/>
|
<toolbarbutton id="zotero-tb-tag-selector" tooltiptext="&zotero.toolbar.tagSelector.label;" oncommand="ZoteroPane.toggleTagSelector()"/>
|
||||||
<toolbarbutton id="zotero-tb-actions-menu" tooltiptext="&zotero.toolbar.actions.label;" type="menu">
|
<toolbarbutton id="zotero-tb-actions-menu" tooltiptext="&zotero.toolbar.actions.label;" type="menu">
|
||||||
|
|
|
@ -198,11 +198,6 @@
|
||||||
width: 150px;
|
width: 150px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#zotero-tb-collection-addsearch
|
|
||||||
{
|
|
||||||
list-style-image: url('chrome://zotero/skin/treesource-search.png');
|
|
||||||
}
|
|
||||||
|
|
||||||
#zotero-tb-search-cancel
|
#zotero-tb-search-cancel
|
||||||
{
|
{
|
||||||
width: 10px;
|
width: 10px;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user