Commit f96ce9ff authored by Sebastien Robin's avatar Sebastien Robin

erp5_web_renderjs_ui: Add put and post method to erp5_jio

parent a9b79108
...@@ -210,6 +210,12 @@ ...@@ -210,6 +210,12 @@
}) })
.declareMethod('putAttachment', function (id, name, json) { .declareMethod('putAttachment', function (id, name, json) {
return wrapJioCall(this, 'putAttachment', [id, name, JSON.stringify(json)]); return wrapJioCall(this, 'putAttachment', [id, name, JSON.stringify(json)]);
})
.declareMethod('put', function (key, doc) {
return wrapJioCall(this, 'put', [key, doc]);
})
.declareMethod('post', function (doc) {
return wrapJioCall(this, 'post', [doc]);
}); });
}(window, rJS, RSVP, UriTemplate, URI, Query, SimpleQuery, ComplexQuery, jIO)); }(window, rJS, RSVP, UriTemplate, URI, Query, SimpleQuery, ComplexQuery, jIO));
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment