Commit 1ee6f806 authored by Roque's avatar Roque

erp5_officejs: dialog form for new post action

parent d3c8d637
......@@ -148,6 +148,13 @@
})
.push(function (result_list) {
var url_list = result_list[0], header_dict;
if (gadget.state.form_type === 'dialog') {
header_dict = {
page_title: gadget.state.doc.title,
//TODO: find correct url
cancel_url: url_list[6]
};
} else {
if (gadget.state.form_type === 'list') {
header_dict = {
panel_action: true,
......@@ -157,12 +164,6 @@
filter_action: true,
page_title: result_list[2]
};
} else if (gadget.state.form_type === 'dialog') {
header_dict = {
page_title: gadget.state.doc.title,
//TODO: find correct url
cancel_url: url_list[6]
};
} else {
header_dict = {
selection_url: url_list[2],
......@@ -191,6 +192,7 @@
erp5_document._links.action_object_jio_print
) ? url_list[5] : '';
}
}
return this_gadget.updateHeader(header_dict);
});
});
......
......@@ -269,7 +269,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>975.23841.30794.8294</string> </value>
<value> <string>975.23842.17340.49459</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -287,7 +287,7 @@
</tuple>
<state>
<tuple>
<float>1556572935.87</float>
<float>1556637363.69</float>
<string>UTC</string>
</tuple>
</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