[Erp5-report] r34430 jerome - in /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style: Skin...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Apr 9 15:42:35 CEST 2010
Author: jerome
Date: Fri Apr 9 15:42:29 2010
New Revision: 34430
URL: http://svn.erp5.org?rev=34430&view=rev
Log:
Under firefox, rewrite indented title categories using style definition. This way we can select items by pressing the first letter of their name.
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=34430&r1=34429&r2=34430&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] Fri Apr 9 15:42:29 2010
@@ -302,6 +302,41 @@
}\n
}\n
}\n
+/* \n
+* Under firefox, rewrite indented title categories using style definition.\n
+* This way we can select items by pressing the first letter of their name.\n
+*/\n
+var rewriteIndentedSelect = function() {\n
+ var master = document.getElementById("master");\n
+ selects = master.getElementsByTagName("select");\n
+ for (i=0; i<selects.length; i++) {\n
+ options = selects[i].childNodes;\n
+ for (j=0; j<options.length; j++) {\n
+ if (options[j].nodeName != "OPTION") {\n
+ continue;\n
+ }\n
+ text = options[j].innerHTML;\n
+ level = 0;\n
+ if (text.substring(0, 6) == \' \') {\n
+ for (idx=0; idx <= text.length; idx+=6) {\n
+ if (text.substring(idx, idx+6) == \' \') {\n
+ level += 1;\n
+ } else {\n
+ break;\n
+ }\n
+ }\n
+ }\n
+ level = level / 4.;\n
+ options[j].innerHTML = options[j].innerHTML.replace(/ /g, "");\n
+ options[j].style.paddingLeft = level+"em";\n
+\n
+ }\n
+ }\n
+}\n
+\n
+\n
+if (navigator.userAgent.toLowerCase().indexOf(\'firefox\') != -1)\n
+ addLoadEvent(rewriteIndentedSelect);\n
\n
addLoadEvent(resizeIFrameOnLoad);\n
addLoadEvent(addOnChangeEventHandler);\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=34430&r1=34429&r2=34430&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] Fri Apr 9 15:42:29 2010
@@ -1,1 +1,1 @@
-922
+923
More information about the Erp5-report
mailing list