[erp5_web_renderjs_ui] Update jIO
Modify jIO API to keep user data not modified. jIO.get({"_id": "foo"} -> jIO.get("foo") jIO.remove({"_id": "foo"} -> jIO.remove("foo") jIO.post({"title": "bar"}) -> jIO.post({"title": "bar"}) jIO.put({"_id": "foo", "title": "bar"}) -> jIO.put("foo", {"title": "bar"}) jIO.getAttachment({"_id": "foo", "_attachment": "enclosure"} -> jIO.getAttachment("foo", "enclosure") jIO.removeAttachment({"_id": "foo", "_attachment": "enclosure"} -> jIO.removeAttachment("foo", "enclosure") jIO.putAttachment({"_id": "foo", "_attachment": "enclosure", "_blob": blob} -> jIO.putAttachment("foo", "enclosure", blob) Add jIO.allAttachments method. jIO.get does not return an _id and _attachments attributes anymore. jIO.get now really returns the document as saved by jIO.put/post.
Showing
This diff is collapsed.
Please register or sign in to comment