Commit 1070bcfa authored by Roque's avatar Roque

erp5_web_renderjs_ui: hide listbox buttons instead of disable them

parent 571a6b33
......@@ -773,7 +773,9 @@
button_element.type = 'button';
button_element.setAttribute('class', 'ui-icon-list-ul ui-btn-icon-left ' + gadget.state.hide_class);
button_element.textContent = translation_list[5];
div_element.appendChild(button_element);
if (gadget.state.hide_class !== "ui-disabled") {
div_element.appendChild(button_element);
}
// Add Select button
// <button {{disabled}} data-rel="hide" data-i18n="Select" name="Hide" type="button" class="ui-icon-check-square-o ui-btn-icon-left {{hide_class}}"></button>
......@@ -784,7 +786,9 @@
button_element.type = 'button';
button_element.setAttribute('class', 'ui-icon-check-square-o ui-btn-icon-left ' + gadget.state.hide_class);
button_element.textContent = translation_list[1];
div_element.appendChild(button_element);
if (gadget.state.hide_class !== "ui-disabled") {
div_element.appendChild(button_element);
}
}
fragment.appendChild(div_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