• Romain Courteaud's avatar
    [erp5_web_renderjs_ui] Update jIO · 748c295d
    Romain Courteaud authored
    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.
    748c295d
rjs_gadget_erp5_js.xml 28.3 KB