[Erp5-report] r39146 romain - in /erp5/trunk/bt5/erp5_knowledge_pad: SkinTemplateItem/porta...

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Oct 14 15:20:37 CEST 2010


Author: romain
Date: Thu Oct 14 15:20:35 2010
New Revision: 39146

URL: http://svn.erp5.org?rev=39146&view=rev
Log:
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.

Modified:
    erp5/trunk/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/ERP5Site_viewWorklistGadget.xml
    erp5/trunk/bt5/erp5_knowledge_pad/bt/revision

Modified: erp5/trunk/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/ERP5Site_viewWorklistGadget.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/ERP5Site_viewWorklistGadget.xml?rev=39146&r1=39145&r2=39146&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/ERP5Site_viewWorklistGadget.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/ERP5Site_viewWorklistGadget.xml [utf8] Thu Oct 14 15:20:35 2010
@@ -2,10 +2,7 @@
 <ZopeData>
   <record id="1" aka="AAAAAAAAAAE=">
     <pickle>
-      <tuple>
-        <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
-        <tuple/>
-      </tuple>
+      <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
     </pickle>
     <pickle>
       <dictionary>
@@ -45,6 +42,7 @@
            preferences  box/KnowledgeBox_getDefaultPreferencesDict;\n
            actions python:getattr(context,\'portal_workflow\').listActionInfos();\n
            absolute_url  context/absolute_url;\n
+           portal_url context/portal_url;\n
            box_id python: \'visual_\'+str(box.getId())">\n
 \n
 <div class="worklist_list">\n
@@ -65,9 +63,7 @@
     <li tal:repeat="action actions"\n
         tal:attributes="id python:\'li\'+box_id+\'_\'+str(repeat[\'action\'].index)">\n
       <tal:block >\n
-        <a onmouseover="this.style.backgroundColor=\'#ECECEC\';" \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
+        <a tal:attributes="href python: absolute_url+action[\'url\'][len(portal_url):]"\n
            tal:content="action/title"></a>\n
         <div tal:attributes="id python:\'div_\'+box.getId()+\'_\'+str(repeat[\'action\'].index)"></div>\n
       </tal:block>\n
@@ -75,7 +71,8 @@
   </ul>\n
 \n
 </div>\n
-</tal:block>
+</tal:block>\n
+
 
 ]]></string> </value>
         </item>

Modified: erp5/trunk/bt5/erp5_knowledge_pad/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_knowledge_pad/bt/revision?rev=39146&r1=39145&r2=39146&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_knowledge_pad/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_knowledge_pad/bt/revision [utf8] Thu Oct 14 15:20:35 2010
@@ -1 +1 @@
-555
\ No newline at end of file
+558
\ No newline at end of file




More information about the Erp5-report mailing list