Commit 3ceca50f authored by Roque's avatar Roque

erp5_officejs: header add button removed

- adding elements is done via actions
- comment cleanup needed
parent 1a032115
...@@ -61,9 +61,9 @@ ...@@ -61,9 +61,9 @@
}) })
.push(function (result) { .push(function (result) {
form_definition = result; form_definition = result;
//TODO: solve add button //TODO: solve add button (header add button - '+' icon)
//for backward compatibility (header add button - '+' icon) //solved: add elements must be done via actions
if (form_definition.action_type === "object_list") { /*if (form_definition.action_type === "object_list") {
form_definition._links.action_object_new_content_action = { form_definition._links.action_object_new_content_action = {
page: "handle_action", page: "handle_action",
title: "New Post", title: "New Post",
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
parent_portal_type: "Post Module", parent_portal_type: "Post Module",
source_reference: "for-future-thread-id" source_reference: "for-future-thread-id"
}; };
} }*/
return gadget_utils.getFormInfo(form_definition); return gadget_utils.getFormInfo(form_definition);
}) })
.push(function (form_info) { .push(function (form_info) {
......
...@@ -243,7 +243,7 @@ ...@@ -243,7 +243,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1557496397.35</float> <float>1557758029.57</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -140,10 +140,11 @@ ...@@ -140,10 +140,11 @@
page_title = options.doc.title; page_title = options.doc.title;
} }
erp5_document = form_json.erp5_document; erp5_document = form_json.erp5_document;
if (erp5_document._links && erp5_document._links.action_object_new_content_action) { //add elements must be done via actions, so no 'add' button
/*if (erp5_document._links && erp5_document._links.action_object_new_content_action) {
url_for_parameter_list.push({command: 'change', options: erp5_document._links.action_object_new_content_action}); url_for_parameter_list.push({command: 'change', options: erp5_document._links.action_object_new_content_action});
add_url = true; add_url = true;
} }*/
return RSVP.all([ return RSVP.all([
this_gadget.getUrlForList(url_for_parameter_list), this_gadget.getUrlForList(url_for_parameter_list),
this_gadget.isDesktopMedia(), this_gadget.isDesktopMedia(),
......
...@@ -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.39467.50073.9608</string> </value> <value> <string>975.39468.60846.58214</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>1557424135.7</float> <float>1557758125.07</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