[Erp5-report] r34967 jerome - in /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style: Skin...
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue May 4 10:52:24 CEST 2010
Author: jerome
Date: Tue May 4 10:52:20 2010
New Revision: 34967
URL: http://svn.erp5.org?rev=34967&view=rev
Log:
Only apply the listfield indentation if the option starts with
Take into account r34963, the first character can be \n
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml
erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml?rev=34967&r1=34966&r2=34967&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml [utf8] Tue May 4 10:52:20 2010
@@ -304,6 +304,9 @@
continue;\n
}\n
text = options[j].innerHTML;\n
+ if (text.substring(0, 1) == \'\\n\') {\n
+ text = text.substring(1, text.length);\n
+ }\n
level = 0;\n
if (text.substring(0, 6) == \' \') {\n
for (idx=0; idx <= text.length; idx+=6) {\n
@@ -314,10 +317,11 @@
}\n
}\n
}\n
- level = level / 4.;\n
- options[j].innerHTML = options[j].innerHTML.replace(/^( )+/, "");\n
- options[j].style.paddingLeft = level+"em";\n
-\n
+ if (level >= 1) {\n
+ level = level / 4.;\n
+ options[j].innerHTML = text.replace(/^( )+/, "");\n
+ options[j].style.paddingLeft = level+"em";\n
+ }\n
}\n
}\n
}\n
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision?rev=34967&r1=34966&r2=34967&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision [utf8] Tue May 4 10:52:20 2010
@@ -1,1 +1,1 @@
-936
+938
More information about the Erp5-report
mailing list