Commit 114c40af authored by Tristan Cavelier's avatar Tristan Cavelier

erp5_officejs_support_request_ui: fit notifySubmitted new API

parent 03fbd4a9
...@@ -189,10 +189,10 @@ ...@@ -189,10 +189,10 @@
editor = gadget.element.querySelector('#comment'); editor = gadget.element.querySelector('#comment');
if (editor.value === '') { if (editor.value === '') {
return gadget.notifySubmitted("Post content can not be empty!"); return gadget.notifySubmitted({message: "Post content can not be empty!"});
} }
return gadget.notifySubmitted("Comment added") return gadget.notifySubmitted({message: "Comment added"})
.push(function () { .push(function () {
var choose_file_html_element = gadget.element.querySelector('#attachment'), var choose_file_html_element = gadget.element.querySelector('#attachment'),
file_blob = choose_file_html_element.files[0], file_blob = choose_file_html_element.files[0],
......
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