Fixes saved search syncing, probably

This commit is contained in:
Dan Stillman 2008-08-20 14:52:24 +00:00
parent 78731858ab
commit 4c2a37e510
2 changed files with 4 additions and 4 deletions

View File

@ -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;
/**

View File

@ -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;