Fixes saved search syncing, probably
This commit is contained in:
parent
78731858ab
commit
4c2a37e510
|
@ -1,4 +1,4 @@
|
|||
Zotero.DataObjects = function (object, objectPlural) {
|
||||
Zotero.DataObjects = function (object, objectPlural, id, table) {
|
||||
var self = this;
|
||||
|
||||
if (!object) {
|
||||
|
@ -11,8 +11,8 @@ Zotero.DataObjects = function (object, objectPlural) {
|
|||
this._ZDO_Object = object.substr(0, 1).toUpperCase() + object.substr(1);
|
||||
this._ZDO_Objects = this._ZDO_objects.substr(0, 1).toUpperCase()
|
||||
+ this._ZDO_objects.substr(1);
|
||||
this._ZDO_id = object + 'ID';
|
||||
this._ZDO_table = this._ZDO_objects;
|
||||
this._ZDO_id = (id ? id : object) + 'ID';
|
||||
this._ZDO_table = table ? table : this._ZDO_objects;
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -1483,7 +1483,7 @@ Zotero.Search.prototype._generateKey = function () {
|
|||
|
||||
|
||||
Zotero.Searches = new function(){
|
||||
Zotero.DataObjects.apply(this, ['search', 'searches']);
|
||||
Zotero.DataObjects.apply(this, ['search', 'searches', 'savedSearch', 'savedSearches']);
|
||||
this.constructor.prototype = new Zotero.DataObjects();
|
||||
|
||||
this.get = get;
|
||||
|
|
Loading…
Reference in New Issue
Block a user