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:
Dan Stillman 2007-02-18 01:41:41 +00:00
parent 41433841e4
commit 0e62e3734a
3 changed files with 0 additions and 19 deletions

View File

@ -38,7 +38,6 @@ 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;
@ -380,18 +379,6 @@ 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();

View File

@ -105,7 +105,6 @@
<vbox flex="1">
<toolbar>
<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"/>
<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">

View File

@ -198,11 +198,6 @@
width: 150px;
}
#zotero-tb-collection-addsearch
{
list-style-image: url('chrome://zotero/skin/treesource-search.png');
}
#zotero-tb-search-cancel
{
width: 10px;