From c0db546ccaf86c04e9d63feb68abe15a2b9e4cd9 Mon Sep 17 00:00:00 2001 From: Ivan Tyagov <ivan@nexedi.com> Date: Fri, 18 May 2012 09:46:30 +0300 Subject: [PATCH] Use gloabl RenderJs variable API introduced in 4a0db3ffc824b5fc6a0e270f7c688eb9cf752ade --- .../erp5_xhtml_gadget_style/gadgets/tabular_gadget/gadget.xml | 2 +- .../portal_skins/erp5_xhtml_gadget_style/view_main_disable.xml | 2 +- bt5/erp5_xhtml_gadget_style/bt/revision | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bt5/erp5_xhtml_gadget_style/SkinTemplateItem/portal_skins/erp5_xhtml_gadget_style/gadgets/tabular_gadget/gadget.xml b/bt5/erp5_xhtml_gadget_style/SkinTemplateItem/portal_skins/erp5_xhtml_gadget_style/gadgets/tabular_gadget/gadget.xml index 17520fdc8a..c9e809dae9 100644 --- a/bt5/erp5_xhtml_gadget_style/SkinTemplateItem/portal_skins/erp5_xhtml_gadget_style/gadgets/tabular_gadget/gadget.xml +++ b/bt5/erp5_xhtml_gadget_style/SkinTemplateItem/portal_skins/erp5_xhtml_gadget_style/gadgets/tabular_gadget/gadget.xml @@ -74,7 +74,7 @@ tal:attributes="id action_form;\n class python: action == current_action and \'selected\' or \'not_selected\'">\n \n - <a tal:attributes="onclick python: \'\'\'javascript: TabbularGadget.addNewTabGadget(\'form_gadget\', \'%s/Form_asRenderJSGadget\', \'ERP5Form.update\', \'Form_asJSON?form_id=%s\');; TabbularGadget.toggleVisibility($(\'#%s\'));; ERP5Form.setCurrentFormId(\'%s\');;return false ;;\'\'\' %(action_form, action_form, action_form, action_form)">\n + <a tal:attributes="onclick python: \'\'\'javascript: RenderJs.TabbularGadget.addNewTabGadget(\'form_gadget\', \'%s/Form_asRenderJSGadget\', \'ERP5Form.update\', \'Form_asJSON?form_id=%s\');; RenderJs.TabbularGadget.toggleVisibility($(\'#%s\'));; ERP5Form.setCurrentFormId(\'%s\');;return false ;;\'\'\' %(action_form, action_form, action_form, action_form)">\n <span i18n:translate=""\n i18n:domain="ui"\n tal:content="action/name">action_name</span>\n diff --git a/bt5/erp5_xhtml_gadget_style/SkinTemplateItem/portal_skins/erp5_xhtml_gadget_style/view_main_disable.xml b/bt5/erp5_xhtml_gadget_style/SkinTemplateItem/portal_skins/erp5_xhtml_gadget_style/view_main_disable.xml index cf2b6121c8..eac63d2b47 100644 --- a/bt5/erp5_xhtml_gadget_style/SkinTemplateItem/portal_skins/erp5_xhtml_gadget_style/view_main_disable.xml +++ b/bt5/erp5_xhtml_gadget_style/SkinTemplateItem/portal_skins/erp5_xhtml_gadget_style/view_main_disable.xml @@ -79,7 +79,7 @@ // init all when all gadgets are ready (loaded)\n $(document).ready(function() {\n RenderJs.bootstrap($("#content"));\n - GadgetIndex.getRootGadget().getDom().one("ready", function (){\n + RenderJs.GadgetIndex.getRootGadget().getDom().one("ready", function (){\n RenderJs.update($("#content"));\n });\n });\n diff --git a/bt5/erp5_xhtml_gadget_style/bt/revision b/bt5/erp5_xhtml_gadget_style/bt/revision index c7930257df..301160a930 100644 --- a/bt5/erp5_xhtml_gadget_style/bt/revision +++ b/bt5/erp5_xhtml_gadget_style/bt/revision @@ -1 +1 @@ -7 \ No newline at end of file +8 \ No newline at end of file -- 2.30.9