From be0d9c1e9ec61902c73535d7dd6562efc5ddc0c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Thu, 22 Apr 2010 08:45:08 +0000 Subject: [PATCH] fix that regexp, if " " is present in the middle of a name, it should not be replaced. Only spaces used for indentation should be replaced git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34716 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml | 2 +- product/ERP5/bootstrap/erp5_xhtml_style/bt/revision | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml index eb7077cd62..c115a4ea15 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml +++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml @@ -327,7 +327,7 @@ var rewriteIndentedSelect = function() {\n }\n }\n level = level / 4.;\n - options[j].innerHTML = options[j].innerHTML.replace(/ /g, "");\n + options[j].innerHTML = options[j].innerHTML.replace(/^( )+/, "");\n options[j].style.paddingLeft = level+"em";\n \n }\n diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision index 086d92f2e1..930e0e0f80 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision +++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision @@ -1 +1 @@ -929 \ No newline at end of file +930 \ No newline at end of file -- 2.30.9