From 0e62e3734a99a294aab9fc490ab7d5275c1d0ad3 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 18 Feb 2007 01:41:41 +0000 Subject: [PATCH] Removing New Saved Search button, which is redundant now that there's an advanced search window with a Save Search button --- chrome/content/zotero/overlay.js | 13 ------------- chrome/content/zotero/overlay.xul | 1 - chrome/skin/default/zotero/overlay.css | 5 ----- 3 files changed, 19 deletions(-) diff --git a/chrome/content/zotero/overlay.js b/chrome/content/zotero/overlay.js index 837d0d537..6238cea91 100644 --- a/chrome/content/zotero/overlay.js +++ b/chrome/content/zotero/overlay.js @@ -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(); diff --git a/chrome/content/zotero/overlay.xul b/chrome/content/zotero/overlay.xul index 82a29669a..cc1c5f34c 100644 --- a/chrome/content/zotero/overlay.xul +++ b/chrome/content/zotero/overlay.xul @@ -105,7 +105,6 @@ - diff --git a/chrome/skin/default/zotero/overlay.css b/chrome/skin/default/zotero/overlay.css index ca0a61711..9d542e4a2 100644 --- a/chrome/skin/default/zotero/overlay.css +++ b/chrome/skin/default/zotero/overlay.css @@ -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;