From 8f56c51d6a562d26fe8b84e1906bd8057e0896e5 Mon Sep 17 00:00:00 2001 From: Ivan Tyagov <ivan@nexedi.com> Date: Thu, 9 Sep 2010 13:28:41 +0000 Subject: [PATCH] Be XHTMl complaint and always specified required attributes to img tag. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38238 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../erp5_xhtml_style/ListBox_asHTML.xml | 6 ++- .../erp5_xhtml_style/erp5_listbox.css.xml | 10 +++- .../images/transparent-image.gif.xml | 53 +++++++++++++++++++ .../bootstrap/erp5_xhtml_style/bt/revision | 2 +- 4 files changed, 66 insertions(+), 5 deletions(-) create mode 100644 product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/images/transparent-image.gif.xml diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asHTML.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asHTML.xml index 8d83ac5c8d..dcce32a391 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asHTML.xml +++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asHTML.xml @@ -304,9 +304,11 @@ i18n:domain="ui" i18n:attributes="title"/>\n \n <!-- Icon showing sort order -->\n - <img tal:attributes="title bt_title;\n + <img src="images/transparent-image.gif"\n + tal:attributes="alt bt_title;\n + title bt_title;\n class bt_class;"\n - i18n:domain="ui" i18n:attributes="title" />\n + i18n:domain="ui" i18n:attributes="title;alt" />\n \n </th>\n \n diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5_listbox.css.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5_listbox.css.xml index 54269d5f2a..be9ed31ae0 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5_listbox.css.xml +++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5_listbox.css.xml @@ -751,14 +751,20 @@ table.listbox th button.sort-button-desc{\n background: none;\n }\n \n +table.listbox th img.sort-button-desc,\n +table.listbox th img.sort-button-asc{\n + width: 13px;\n + height: 13px;\n + margin:0;\n + padding:0;\n +}\n +\n table.listbox th img.sort-button-desc{\n background: url(\'images/1toparrow.png\') no-repeat scroll 100% 100%;\n - padding-left:12px;\n }\n \n table.listbox th img.sort-button-asc{\n background: url(\'images/1bottomarrow.png\') no-repeat scroll 100% 100%;\n - padding-left:12px;\n }\n \n /* in search mode listbox may contain top/bottom quick search inputs */\n diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/images/transparent-image.gif.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/images/transparent-image.gif.xml new file mode 100644 index 0000000000..746ba614e9 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/images/transparent-image.gif.xml @@ -0,0 +1,53 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Image" module="OFS.Image"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_Cacheable__manager_id</string> </key> + <value> <string>http_cache</string> </value> + </item> + <item> + <key> <string>_EtagSupport__etag</string> </key> + <value> <string>ts84037255.05</string> </value> + </item> + <item> + <key> <string>__name__</string> </key> + <value> <string>transparent-image.gif</string> </value> + </item> + <item> + <key> <string>content_type</string> </key> + <value> <string>image/gif</string> </value> + </item> + <item> + <key> <string>data</string> </key> + <value> <string encoding="base64">R0lGODlhAQABAIAAAP///////yH+EUNyZWF0ZWQgd2l0aCBHSU1QACH5BAEKAAEALAAAAAABAAEA +AAICTAEAOw==</string> </value> + </item> + <item> + <key> <string>height</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>precondition</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>size</string> </key> + <value> <int>64</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>transparent-image.gif</string> </value> + </item> + <item> + <key> <string>width</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision index e37d32abba..5ed13cbaef 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision +++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision @@ -1 +1 @@ -1000 \ No newline at end of file +1002 \ No newline at end of file -- 2.30.9