[Erp5-report] r42416 ivan - in /erp5/trunk/bt5/erp5_xhtml_jquery_style: SkinTemplateItem/po...

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Jan 18 15:47:17 CET 2011


Author: ivan
Date: Tue Jan 18 15:47:17 2011
New Revision: 42416

URL: http://svn.erp5.org?rev=42416&view=rev
Log:
Do not disable other form elements having same name attribute.

Modified:
    erp5/trunk/bt5/erp5_xhtml_jquery_style/SkinTemplateItem/portal_skins/erp5_xhtml_jquery_style/erp5.js.xml
    erp5/trunk/bt5/erp5_xhtml_jquery_style/bt/revision

Modified: erp5/trunk/bt5/erp5_xhtml_jquery_style/SkinTemplateItem/portal_skins/erp5_xhtml_jquery_style/erp5.js.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_xhtml_jquery_style/SkinTemplateItem/portal_skins/erp5_xhtml_jquery_style/erp5.js.xml?rev=42416&r1=42415&r2=42416&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_xhtml_jquery_style/SkinTemplateItem/portal_skins/erp5_xhtml_jquery_style/erp5.js.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_xhtml_jquery_style/SkinTemplateItem/portal_skins/erp5_xhtml_jquery_style/erp5.js.xml [utf8] Tue Jan 18 15:47:17 2011
@@ -171,25 +171,15 @@ function fixLeftRightHeightAndFocus(fix_
 // if clear_changed_flag is set to true, changed will be set to false, so no\n
 // warning message about unsaved changes will be displayed\n
 function submitFormOnEnter(event, form, method_name, clear_changed_flag, element){\n
-  if (clear_changed_flag == null){\n
-    clear_changed_flag = false;\n
-  }\n
+  if (clear_changed_flag == null){ clear_changed_flag = false; }\n
   if(event.keyCode == 13){\n
-    if (form == \'main_form\') {\n
+    if (form == "main_form") {\n
       form = $("#"+form); // backward compatibility\n
     }\n
-    form.action = method_name;\n
+    form.attr("action", method_name);\n
     if (clear_changed_flag==true) {\n
       changed = false;\n
     }\n
-    if(element!=null){\n
-      // disable other form elements having same name attribute\n
-      $(element.tagName).each(\n
-        function (index){\n
-          input = $(this);\n
-          if((input.attr("name") == element.name) && (input!=element)){input.attr("disabled",true);}\n
-        });\n
-     }\n
     form.submit();\n
   }\n
 }\n

Modified: erp5/trunk/bt5/erp5_xhtml_jquery_style/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_xhtml_jquery_style/bt/revision?rev=42416&r1=42415&r2=42416&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_xhtml_jquery_style/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_xhtml_jquery_style/bt/revision [utf8] Tue Jan 18 15:47:17 2011
@@ -1 +1 @@
-8
\ No newline at end of file
+9
\ No newline at end of file



More information about the Erp5-report mailing list