From 2ebef35289b4a0a66cb510d2cd3972675c278c97 Mon Sep 17 00:00:00 2001 From: Romain Courteaud <romain@nexedi.com> Date: Wed, 30 Jul 2014 09:27:03 +0000 Subject: [PATCH] Hide expected hidden fields --- .../web_page_module/rjs_gadget_erp5_form_js.xml | 4 ++++ bt5/erp5_web_renderjs_ui/bt/revision | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_form_js.xml b/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_form_js.xml index 5eb5496fab..36a1411174 100644 --- a/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_form_js.xml +++ b/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_form_js.xml @@ -170,6 +170,10 @@ label_element = document.createElement("label"),\n renderered_field = rendered_form[field[0]];\n \n + if (renderered_field.hidden === 1) {\n + // Hide field\n + field_element.setAttribute("class", "ui-screen-hidden");\n + }\n // field_element.setAttribute(\'data-role\', \'fieldcontain\');\n label_element.setAttribute(\'for\', renderered_field.key);\n label_element.textContent = renderered_field.title;\n diff --git a/bt5/erp5_web_renderjs_ui/bt/revision b/bt5/erp5_web_renderjs_ui/bt/revision index 9d607966b7..3cacc0b93c 100644 --- a/bt5/erp5_web_renderjs_ui/bt/revision +++ b/bt5/erp5_web_renderjs_ui/bt/revision @@ -1 +1 @@ -11 \ No newline at end of file +12 \ No newline at end of file -- 2.30.9