Commit 705eec7b authored by Tristan Cavelier's avatar Tristan Cavelier Committed by Romain Courteaud

[erp5_web_renderjs_ui] jslint rjs_gadget_erp5_relation_input_js

parent 9c751e8d
...@@ -357,7 +357,8 @@ ...@@ -357,7 +357,8 @@
'ui-icon-sign-in ui-btn-icon-right'); 'ui-icon-sign-in ui-btn-icon-right');
li_element.setAttribute('data-relative-url', row.id); li_element.setAttribute('data-relative-url', row.id);
li_element.setAttribute('data-uid', row.value.uid); li_element.setAttribute('data-uid', row.value.uid);
li_element.textContent = row.value[gadget.state.catalog_index]; li_element.textContent =
row.value[gadget.state.catalog_index];
fragment_element.appendChild(li_element); fragment_element.appendChild(li_element);
} }
...@@ -366,7 +367,8 @@ ...@@ -366,7 +367,8 @@
// data-create-object="{{value}}" name="{{name}}">Create New // data-create-object="{{value}}" name="{{name}}">Create New
// <span> {{name}}: {{../value}}</span></li> // <span> {{name}}: {{../value}}</span></li>
if (gadget.state.allow_creation) { if (gadget.state.allow_creation) {
portal_type_list = JSON.parse(gadget.state.portal_types); portal_type_list =
JSON.parse(gadget.state.portal_types);
translated_portal_type_list = translated_portal_type_list =
JSON.parse(gadget.state.translated_portal_types); JSON.parse(gadget.state.translated_portal_types);
for (i = 0; i < portal_type_list.length; i += 1) { for (i = 0; i < portal_type_list.length; i += 1) {
...@@ -378,7 +380,8 @@ ...@@ -378,7 +380,8 @@
li_element.setAttribute('name', li_element.setAttribute('name',
translated_portal_type_list[i]); translated_portal_type_list[i]);
li_element.textContent = li_element.textContent =
result_list[1][0] + ' ' + translated_portal_type_list[i] + result_list[1][0] + ' ' +
translated_portal_type_list[i] +
': ' + value_text; ': ' + value_text;
fragment_element.appendChild(li_element); fragment_element.appendChild(li_element);
} }
......
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