Allow loading of saved search in constructor

This commit is contained in:
Dan Stillman 2006-12-01 05:37:21 +00:00
parent e0d955afba
commit ab7f618a3e

View File

@ -20,13 +20,17 @@
***** END LICENSE BLOCK ***** ***** END LICENSE BLOCK *****
*/ */
Zotero.Search = function(){ Zotero.Search = function(savedSearchID){
this._sql = null; this._sql = null;
this._sqlParams = null; this._sqlParams = null;
this._maxSearchConditionID = 0; this._maxSearchConditionID = 0;
this._conditions = []; this._conditions = [];
this._savedSearchID = null; this._savedSearchID = null;
this._savedSearchName = null; this._savedSearchName = null;
if (savedSearchID) {
this.load(savedSearchID);
}
} }