From e5555cac6eb23ef6a44cc5bc83eb18a04c2ac4cd Mon Sep 17 00:00:00 2001 From: Sven Franck <sven.franck@nexedi.com> Date: Fri, 2 Jan 2015 23:56:14 +0000 Subject: [PATCH] erp5_web_renderjs_ui: fix form gadget doing unneeded translation and breaking child declareServices --- .../web_page_module/rjs_gadget_erp5_form_js.xml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) 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 3f3cab233a..05828a9f44 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 @@ -130,7 +130,6 @@ })\n \n .declareAcquiredMethod("aq_put", "jio_put")\n - .declareAcquiredMethod("translateHtml", "translateHtml")\n \n .allowPublicAcquisition("notifyInvalid", function (param_list, scope) {\n return this.getDeclaredGadget(scope)\n @@ -271,19 +270,13 @@ \n return queue\n .push(function () {\n - var temp = document.createElement("div");\n - temp.appendChild(parent_element);\n - return form_gadget.translateHtml(temp.innerHTML);\n - })\n - .push(function (my_translated_html) {\n var dom_element = form_gadget.props.element\n .querySelector(".field_container");\n while (dom_element.firstChild) {\n dom_element.removeChild(dom_element.firstChild);\n }\n - dom_element.innerHTML = my_translated_html;\n + dom_element.appendChild(parent_element);\n // return $(parent_element).trigger("create");\n -\n });\n })\n \n @@ -486,7 +479,7 @@ </item> <item> <key> <string>serial</string> </key> - <value> <string>939.62597.55939.38724</string> </value> + <value> <string>940.2226.16128.23057</string> </value> </item> <item> <key> <string>state</string> </key> @@ -504,7 +497,7 @@ </tuple> <state> <tuple> - <float>1419932704.16</float> + <float>1420242897.6</float> <string>GMT</string> </tuple> </state> -- 2.30.9