Commit 5edc88f8 authored by Roque's avatar Roque

erp5_web_renderjs_ui: hide select and clipboard functionalities in listbox

- 'uid'-select-checkbox-workaround doesn't work on officejs apps
parent 825e26ce
...@@ -446,7 +446,6 @@ ...@@ -446,7 +446,6 @@
if (field_json.sort === undefined) { if (field_json.sort === undefined) {
field_json.sort = [] field_json.sort = []
} }
return gadget.changeState({ return gadget.changeState({
key: field_json.key, key: field_json.key,
title: field_json.title, title: field_json.title,
...@@ -770,7 +769,7 @@ ...@@ -770,7 +769,7 @@
button_element.setAttribute('data-rel', 'clipboard'); button_element.setAttribute('data-rel', 'clipboard');
button_element.setAttribute('name', 'Clipboard'); button_element.setAttribute('name', 'Clipboard');
button_element.type = 'button'; button_element.type = 'button';
button_element.setAttribute('class', 'ui-icon-list-ul ui-btn-icon-left '); button_element.setAttribute('class', 'ui-icon-list-ul ui-btn-icon-left ' + gadget.state.hide_class);
button_element.textContent = translation_list[5]; button_element.textContent = translation_list[5];
div_element.appendChild(button_element); div_element.appendChild(button_element);
......
...@@ -125,8 +125,10 @@ ...@@ -125,8 +125,10 @@
form_options.editable = form_gadget.state.editable; form_options.editable = form_gadget.state.editable;
// XXX Hardcoded for listbox's hide/configure functionalities // XXX Hardcoded for listbox's hide/configure functionalities
form_options.form_definition.hide_enabled = true;
form_options.form_definition.configure_enabled = true; form_options.form_definition.configure_enabled = true;
// XXX Disable select and clipboard functionalities: 'uid'-workaround made for renderjs UI doesn't work on officejs
// TODO: ask if officejs app or regular renderjs ui
form_options.form_definition.hide_enabled = false;
// XXX not generic, fix later // XXX not generic, fix later
if (form_gadget.state.extended_search) { if (form_gadget.state.extended_search) {
......
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