commit 236901c1adaca9d32595fb769868ce63d2aedd8d parent 9f72f0af4bfd4efac1dd4ff155fc787256a6bcd9 Author: Dan Stillman <dstillman@zotero.org> Date: Mon, 29 Aug 2011 14:32:17 +0000 Don't include child items in "Titles & Creators" searches Diffstat:
| M | chrome/content/zotero/xpcom/search.js | | | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/chrome/content/zotero/xpcom/search.js b/chrome/content/zotero/xpcom/search.js @@ -436,6 +436,11 @@ Zotero.Search.prototype.addCondition = function(condition, operator, value, requ this.addCondition('blockEnd'); } + + if (condition == 'quicksearch-titlesAndCreators') { + this.addCondition('noChildren', 'true'); + } + return false; } // Shortcut to add a collection