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:
parent
ac180c2324
commit
bddb5ed243
1 changed files with 3 additions and 3 deletions
|
@ -561,9 +561,9 @@ Zotero.Server.Connector.SavePage.prototype = {
|
|||
* Returns:
|
||||
* 201 response code with item in body.
|
||||
*/
|
||||
Zotero.Server.Connector.SaveItem = function() {};
|
||||
Zotero.Server.Endpoints["/connector/saveItems"] = Zotero.Server.Connector.SaveItem;
|
||||
Zotero.Server.Connector.SaveItem.prototype = {
|
||||
Zotero.Server.Connector.SaveItems = function() {};
|
||||
Zotero.Server.Endpoints["/connector/saveItems"] = Zotero.Server.Connector.SaveItems;
|
||||
Zotero.Server.Connector.SaveItems.prototype = {
|
||||
supportedMethods: ["POST"],
|
||||
supportedDataTypes: ["application/json"],
|
||||
permitBookmarklet: true,
|
||||
|
|
Loading…
Add table
Reference in a new issue