Commit a4e63da9 authored by Roque's avatar Roque Committed by Roque

erp5_officejs_ooffice: enable readonly view for non-only-office documents

parent 20f0dae9
......@@ -119,15 +119,12 @@
name_list.push(view_gadget.state.mime_type);
content_dict.filename = name_list.join('.');
}
return gadget.getSetting("content_type");
})
.push(function (content_type) {
content_dict.content_type = content_type;
return child_gadget.submitContent(
child_gadget.state.jio_key, undefined, content_dict
);
})
.push(function () {
if (view_gadget.state.content_editable) {
return gadget
.jio_putAttachment(child_gadget.state.jio_key, 'data',
jIO.util.dataURItoBlob(data))
......@@ -141,6 +138,7 @@
jio_key: child_gadget.state.jio_key
});
});
}
}, function (error) {
console.log(error);
return gadget.notifySubmitted({
......
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