Commit c0db546c authored by Ivan Tyagov's avatar Ivan Tyagov

Use gloabl RenderJs variable API introduced in 4a0db3ff

parent 4a0db3ff
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
tal:attributes="id action_form;\n tal:attributes="id action_form;\n
class python: action == current_action and \'selected\' or \'not_selected\'">\n class python: action == current_action and \'selected\' or \'not_selected\'">\n
\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 <span i18n:translate=""\n
i18n:domain="ui"\n i18n:domain="ui"\n
tal:content="action/name">action_name</span>\n tal:content="action/name">action_name</span>\n
......
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
// init all when all gadgets are ready (loaded)\n // init all when all gadgets are ready (loaded)\n
$(document).ready(function() {\n $(document).ready(function() {\n
RenderJs.bootstrap($("#content"));\n RenderJs.bootstrap($("#content"));\n
GadgetIndex.getRootGadget().getDom().one("ready", function (){\n RenderJs.GadgetIndex.getRootGadget().getDom().one("ready", function (){\n
RenderJs.update($("#content"));\n RenderJs.update($("#content"));\n
});\n });\n
});\n });\n
......
7 8
\ No newline at end of file \ No newline at end of file
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