[Erp5-report] r11939 - in /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style: SkinTemplat...
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Jan 8 16:58:09 CET 2007
Author: vincent
Date: Mon Jan 8 16:58:07 2007
New Revision: 11939
URL: http://svn.erp5.org?rev=11939&view=rev
Log:
Fix erp5.js modifying the focus on login form after login_form.js did.
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=11939&r1=11938&r2=11939&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml Mon Jan 8 16:58:07 2007
@@ -67,17 +67,18 @@
}\n
\n
// The first input element with an "autofocus" class will get the focus,\n
-// else, the first input is chosen.\n
-// XXX - this requires to be fixed\n
+// else, nothing done\n
function autoFocus() {\n
var inputs = document.getElementsByTagName("input");\n
- var input_to_focus = inputs[0];\n
+ var input_to_focus = 0;\n
for (i=0;i<inputs.length;i++) {\n
if (inputs[i].className == "autofocus") {\n
input_to_focus = inputs[i];\n
}\n
}\n
- input_to_focus.focus();\n
+ if (input_to_focus != 0) {\n
+ input_to_focus.focus();\n
+ }\n
}\n
\n
function fixLeftRightHeight(){\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=11939&r1=11938&r2=11939&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision Mon Jan 8 16:58:07 2007
@@ -1,1 +1,1 @@
-310
+314
More information about the Erp5-report
mailing list