From 88264ea7ba50869a409f848093c7b1af73dad3f7 Mon Sep 17 00:00:00 2001
From: Fabien Morin <fabien@nexedi.com>
Date: Thu, 13 Mar 2008 20:52:22 +0000
Subject: [PATCH] Replace disabled="disabled" attribute by tabindex="1000".
 This gives the same behavior that we have before, but in a xhtml valid way.
 "disabled" attribute can't be used inside a "<a>" markup. This is important
 for unit test because unit test are runed in devlopper mode. It should make
 test failed (but for tidy is just a warning).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19881 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../erp5_xhtml_style/developper_shortcut_render.xml           | 4 ++--
 product/ERP5/bootstrap/erp5_xhtml_style/bt/revision           | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/developper_shortcut_render.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/developper_shortcut_render.xml
index ec0df952ff..ed208d8e40 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/developper_shortcut_render.xml
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/developper_shortcut_render.xml
@@ -55,13 +55,13 @@
            xmlns:metal="http://xml.zope.org/namespaces/metal"\n
            xmlns:i18n="http://xml.zope.org/namespaces/i18n">\n
   <tal:block metal:define-macro="edit_link">\n
-    <a disabled="disabled" tal:condition="python: (getattr(object, \'meta_type\', None) is not None) and (getattr(object, \'getPortalObject\', None) is not None)"\n
+    <a tabindex="1000" tal:condition="python: (getattr(object, \'meta_type\', None) is not None) and (getattr(object, \'getPortalObject\', None) is not None)"\n
        tal:attributes="href python: \'%s/manage_main\' % (\'/\'.join(object.getPhysicalPath()[len(object.getPortalObject().getPhysicalPath()):])) # XXX: quick hack to get path;\n
        title info;"><img tal:attributes="src python: \'%s/images/%s\' % (portal_path, image);\n
                          alt info;" /></a>\n
   </tal:block>\n
   <tal:block metal:define-macro="translate_link">\n
-    <a disabled="disabled" tal:define="image image | python: \'translate.png\'"\n
+    <a tabindex="1000" tal:define="image image | python: \'translate.png\'"\n
        tal:attributes="href python: \'%s/manage_messages?regex=^%s%%24&amp;lang=%s\' % (\'/\'.join(here.Localizer.erp5_ui.getPhysicalPath()[len(here.Localizer.erp5_ui.getPortalObject().getPhysicalPath()):]), message.replace(\'(\', \'\\(\').replace(\')\', \'\\)\'), selected_language);\n
        title info;"><img tal:attributes="src python: \'%s/images/%s\' % (portal_path, image);\n
                          alt info;" /></a>\n
diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
index 03164581e1..84ccffd556 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
@@ -1 +1 @@
-503
\ No newline at end of file
+505
\ No newline at end of file
-- 
2.30.9