From ab7f618a3eb1ec373fcc227ae6bab5e6a336ae53 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 1 Dec 2006 05:37:21 +0000 Subject: [PATCH] Allow loading of saved search in constructor --- chrome/content/zotero/xpcom/search.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/search.js b/chrome/content/zotero/xpcom/search.js index 66efaf0799..1b2981c87f 100644 --- a/chrome/content/zotero/xpcom/search.js +++ b/chrome/content/zotero/xpcom/search.js @@ -20,13 +20,17 @@ ***** END LICENSE BLOCK ***** */ -Zotero.Search = function(){ +Zotero.Search = function(savedSearchID){ this._sql = null; this._sqlParams = null; this._maxSearchConditionID = 0; this._conditions = []; this._savedSearchID = null; this._savedSearchName = null; + + if (savedSearchID) { + this.load(savedSearchID); + } }