Target selector: Fix moving translated items between certain libraries

Moving a translated item from a non-filesEditable library to a
filesEditable library would fail (because the endpoint handler was named
"SaveItem" instead of "SaveItems").

Fixes zotero/zotero-connectors#235
This commit is contained in:
Dan Stillman 2018-04-05 05:38:49 -04:00
parent ac180c2324
commit bddb5ed243

View File

@ -561,9 +561,9 @@ Zotero.Server.Connector.SavePage.prototype = {
* Returns: * Returns:
* 201 response code with item in body. * 201 response code with item in body.
*/ */
Zotero.Server.Connector.SaveItem = function() {}; Zotero.Server.Connector.SaveItems = function() {};
Zotero.Server.Endpoints["/connector/saveItems"] = Zotero.Server.Connector.SaveItem; Zotero.Server.Endpoints["/connector/saveItems"] = Zotero.Server.Connector.SaveItems;
Zotero.Server.Connector.SaveItem.prototype = { Zotero.Server.Connector.SaveItems.prototype = {
supportedMethods: ["POST"], supportedMethods: ["POST"],
supportedDataTypes: ["application/json"], supportedDataTypes: ["application/json"],
permitBookmarklet: true, permitBookmarklet: true,