Commit 9d11282d authored by Romain Courteaud's avatar Romain Courteaud

Change links generation on the Worklist Gadget, in order to directly redirect...

Change links generation on the Worklist Gadget, in order to directly redirect to the worklist URL instead of displaying a collapsing listbox.
This make the gadget more usable.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39146 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b67415c3
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -45,6 +42,7 @@ ...@@ -45,6 +42,7 @@
preferences box/KnowledgeBox_getDefaultPreferencesDict;\n preferences box/KnowledgeBox_getDefaultPreferencesDict;\n
actions python:getattr(context,\'portal_workflow\').listActionInfos();\n actions python:getattr(context,\'portal_workflow\').listActionInfos();\n
absolute_url context/absolute_url;\n absolute_url context/absolute_url;\n
portal_url context/portal_url;\n
box_id python: \'visual_\'+str(box.getId())">\n box_id python: \'visual_\'+str(box.getId())">\n
\n \n
<div class="worklist_list">\n <div class="worklist_list">\n
...@@ -65,9 +63,7 @@ ...@@ -65,9 +63,7 @@
<li tal:repeat="action actions"\n <li tal:repeat="action actions"\n
tal:attributes="id python:\'li\'+box_id+\'_\'+str(repeat[\'action\'].index)">\n tal:attributes="id python:\'li\'+box_id+\'_\'+str(repeat[\'action\'].index)">\n
<tal:block >\n <tal:block >\n
<a onmouseover="this.style.backgroundColor=\'#ECECEC\';" \n <a tal:attributes="href python: absolute_url+action[\'url\'][len(portal_url):]"\n
onmouseout="this.style.backgroundColor=\'inherit\';"\n
tal:attributes="onclick python:\'div=$(\\\'div_\'+box.getId()+\'_\'+str(repeat[\'action\'].index)+\'\\\');;if(getElementsByTagAndClassName(\\\'table\\\',\\\'listbox\\\',div)!=\\\'\\\'){this.style.fontWeight=\\\'normal\\\';;while(div.childNodes[0]){div.removeChild(div.childNodes[0])}}else{this.style.fontWeight=\\\'bold\\\';;\'+context.KnowledgePad_generateAjaxCall(absolute_url+\'/ERP5Site_viewWorklist\',box,\'div_\'+box.getId()+\'_\'+str(repeat[\'action\'].index),{\'worklist\':action[\'workflow_id\']+\'/\'+action[\'worklist_id\'], \'dom_id\':\'div_\'+box.getId()+\'_\'+str(repeat[\'action\'].index)})+\'}\'" \n
tal:content="action/title"></a>\n tal:content="action/title"></a>\n
<div tal:attributes="id python:\'div_\'+box.getId()+\'_\'+str(repeat[\'action\'].index)"></div>\n <div tal:attributes="id python:\'div_\'+box.getId()+\'_\'+str(repeat[\'action\'].index)"></div>\n
</tal:block>\n </tal:block>\n
...@@ -75,7 +71,8 @@ ...@@ -75,7 +71,8 @@
</ul>\n </ul>\n
\n \n
</div>\n </div>\n
</tal:block> </tal:block>\n
]]></string> </value> ]]></string> </value>
</item> </item>
......
555 558
\ 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