Commit cdc0b759 authored by Ivan Tyagov's avatar Ivan Tyagov

Optimize rendering (calculate gadget related variables only if it's gadget_mode).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23670 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 53af2b82
...@@ -61,10 +61,7 @@ ...@@ -61,10 +61,7 @@
show_select_column here/showSelectColumn;\n show_select_column here/showSelectColumn;\n
\t show_anchor_column here/showAnchorColumn;\n \t show_anchor_column here/showAnchorColumn;\n
show_search_line here/showSearchLine;\n show_search_line here/showSearchLine;\n
is_gadget_mode request/is_gadget_mode | nothing;\n is_gadget_mode request/is_gadget_mode | nothing;">\n
box_relative_url python: request.get(\'box_relative_url\', \'\');\n
box_id python: \'visual_%s\' %box_relative_url.split(\'/\')[-1];">\n
\n
<!-- ListBox starts here. -->\n <!-- ListBox starts here. -->\n
<input type="hidden" name="list_selection_name" value="default" tal:attributes="value selection_name" />\n <input type="hidden" name="list_selection_name" value="default" tal:attributes="value selection_name" />\n
<input type="hidden" name="list_selection_name" value="default"\n <input type="hidden" name="list_selection_name" value="default"\n
...@@ -72,7 +69,9 @@ ...@@ -72,7 +69,9 @@
name string:${field_id}_list_selection_name" />\n name string:${field_id}_list_selection_name" />\n
<input tal:condition="md5_string" type="hidden" name="md5_object_uid_list" value="checksum" tal:attributes="value md5_string" />\n <input tal:condition="md5_string" type="hidden" name="md5_object_uid_list" value="checksum" tal:attributes="value md5_string" />\n
\n \n
<tal:block tal:condition="is_gadget_mode" >\n <tal:block tal:condition="is_gadget_mode"\n
tal:define="global box_relative_url python: request.get(\'box_relative_url\', \'\');\n
global box_id python: \'visual_%s\' %box_relative_url.split(\'/\')[-1];">\n
<input tal:condition="python:form_id" \n <input tal:condition="python:form_id" \n
type="hidden" name="gadget_form_id"\n type="hidden" name="gadget_form_id"\n
tal:attributes="value form_id" />\n tal:attributes="value form_id" />\n
......
604 607
\ 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