Commit 1ee6f806 authored by Roque's avatar Roque

erp5_officejs: dialog form for new post action

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