www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit bddb5ed2430231cfd931da4736df0967173fba36
parent ac180c2324c039b8663ac13d438706aea2b9a5a1
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu,  5 Apr 2018 05:38:49 -0400

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

Diffstat:
Mchrome/content/zotero/xpcom/server_connector.js | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/chrome/content/zotero/xpcom/server_connector.js b/chrome/content/zotero/xpcom/server_connector.js @@ -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,