Commit 342f8a69 authored by Ivan Tyagov's avatar Ivan Tyagov

Avoid using HTML ID attributes. ( a listbox is never guaranteed to be alone in a page).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38007 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d678a0da
...@@ -172,9 +172,7 @@ ...@@ -172,9 +172,7 @@
<table class="listbox"> \n <table class="listbox"> \n
<thead>\n <thead>\n
<!--Column title -->\n <!--Column title -->\n
<tr id="listbox-label-line" \n <tr class="listbox-label-line"> \n
class="listbox-label-line"\n
tal:attributes="id string:${field_id}-label-line"> \n
\n \n
<!--Report tree-->\n <!--Report tree-->\n
<th tal:condition="is_report_tree_mode"\n <th tal:condition="is_report_tree_mode"\n
...@@ -261,9 +259,7 @@ ...@@ -261,9 +259,7 @@
\n \n
<!--Search column input -->\n <!--Search column input -->\n
<tr tal:condition="python: show_search_line or is_report_tree_mode"\n <tr tal:condition="python: show_search_line or is_report_tree_mode"\n
id="listbox-search-line" \n class="listbox-search-line">\n
class="listbox-search-line"\n
tal:attributes="id python: show_search_line and (\'%s-search-line\' % field_id) or (\'%s-report-depth-line\' % field_id)">\n
\n \n
<!--Report Tree -->\n <!--Report Tree -->\n
<tal:block tal:condition="is_report_tree_mode">\n <tal:block tal:condition="is_report_tree_mode">\n
...@@ -322,7 +318,7 @@ ...@@ -322,7 +318,7 @@
<input tal:condition="python: is_gadget_mode" \n <input tal:condition="python: is_gadget_mode" \n
tal:define ="params python: {alias:\'this.value\'};"\n tal:define ="params python: {alias:\'this.value\'};"\n
size="8"\n size="8"\n
type="textarea" \n type="text" \n
tal:attributes=\'value python: selection.getParams().get(alias,"");\n tal:attributes=\'value python: selection.getParams().get(alias,"");\n
onkeypress python:"if(event.keyCode==13){" + real_context.KnowledgePad_generateAjaxCall(context_url+"/"+form_id,box,dom_id,params).replace("\\"this.value\\"","this.value")+ "return false;;}"\'/>\n onkeypress python:"if(event.keyCode==13){" + real_context.KnowledgePad_generateAjaxCall(context_url+"/"+form_id,box,dom_id,params).replace("\\"this.value\\"","this.value")+ "return false;;}"\'/>\n
</tal:block>\n </tal:block>\n
...@@ -336,10 +332,9 @@ ...@@ -336,10 +332,9 @@
<!-- Render listbox data-->\n <!-- Render listbox data-->\n
<tal:block tal:condition="line_list"\n <tal:block tal:condition="line_list"\n
tal:define="checked_uid_set here/getCheckedUidSet">\n tal:define="checked_uid_set here/getCheckedUidSet">\n
<tr tal:repeat="line line_list" \n <tr tal:repeat="line line_list" \n
tal:attributes="\n tal:attributes=" \n
id string:${field_id}-data-line-${repeat/line/index};\n class python: line.getRowCSSClassName() or \'%s %s\' %(\'%s-data-line-%s\' %(field_id, repeat[\'line\'].index) ,test(repeat[\'line\'].index % 2, \'DataB\', \'DataA\'));">\n
class python: line.getRowCSSClassName() or test(repeat[\'line\'].index % 2, \'DataB\', \'DataA\');">\n
\n \n
<tal:block tal:define="render_result line/render">\n <tal:block tal:define="render_result line/render">\n
\n \n
......
1521 1522
\ 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