Commit 9b5a4fac authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] ERP5 jIO: add missing methods

parent 1733e06b
...@@ -275,6 +275,18 @@ ...@@ -275,6 +275,18 @@
}) })
.declareMethod('post', function (doc) { .declareMethod('post', function (doc) {
return wrapJioCall(this, 'post', [doc]); return wrapJioCall(this, 'post', [doc]);
})
.declareMethod('repair', function () {
return wrapJioCall(this, 'repair', []);
})
.declareMethod('remove', function (key) {
return wrapJioCall(this, 'remove', [key]);
})
.declareMethod('allAttachments', function (key) {
return wrapJioCall(this, 'allAttachments', [key]);
})
.declareMethod('removeAttachment', function (key, name) {
return wrapJioCall(this, 'removeAttachment', [key, name]);
}); });
}(window, rJS, RSVP, UriTemplate, URI, SimpleQuery, ComplexQuery, jIO)); }(window, rJS, RSVP, UriTemplate, URI, SimpleQuery, ComplexQuery, jIO));
\ No newline at end of file
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>964.58846.58534.49066</string> </value> <value> <string>970.5239.3705.62003</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1520612423.57</float> <float>1536227971.17</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
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