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 @@
show_select_column here/showSelectColumn;\n
\t show_anchor_column here/showAnchorColumn;\n
show_search_line here/showSearchLine;\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
is_gadget_mode request/is_gadget_mode | nothing;">\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"\n
......@@ -72,7 +69,9 @@
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
\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
type="hidden" name="gadget_form_id"\n
tal:attributes="value form_id" />\n
......
604
\ No newline at end of file
607
\ 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