Allow loading of saved search in constructor
This commit is contained in:
parent
e0d955afba
commit
ab7f618a3e
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user