diff --git a/bt5/erp5_xhtml_jquery_style/SkinTemplateItem/portal_skins/erp5_xhtml_jquery_style/erp5.js.xml b/bt5/erp5_xhtml_jquery_style/SkinTemplateItem/portal_skins/erp5_xhtml_jquery_style/erp5.js.xml index f545643b0b308ba927778965b56ca75c91ef26e3..0d4a6e919c0f3ed11a4e60311df94aed47247531 100644 --- a/bt5/erp5_xhtml_jquery_style/SkinTemplateItem/portal_skins/erp5_xhtml_jquery_style/erp5.js.xml +++ b/bt5/erp5_xhtml_jquery_style/SkinTemplateItem/portal_skins/erp5_xhtml_jquery_style/erp5.js.xml @@ -171,25 +171,15 @@ function fixLeftRightHeightAndFocus(fix_height) {\n // 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 diff --git a/bt5/erp5_xhtml_jquery_style/bt/revision b/bt5/erp5_xhtml_jquery_style/bt/revision index 301160a93062df23030a69f4b5e4d9bf71866ee9..f11c82a4cb6cc2e8f3bdf52b5cdeaad4d5bb214e 100644 --- a/bt5/erp5_xhtml_jquery_style/bt/revision +++ b/bt5/erp5_xhtml_jquery_style/bt/revision @@ -1 +1 @@ -8 \ No newline at end of file +9 \ No newline at end of file