diff --git a/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/km_js/erp5_km.js.xml b/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/km_js/erp5_km.js.xml index 1d547e2bb8f6452adddc65a5636365571c366b2b..60e7d5df638d4433abf7540738c474bd17533e66 100644 --- a/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/km_js/erp5_km.js.xml +++ b/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/km_js/erp5_km.js.xml @@ -12,7 +12,7 @@ </item> <item> <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts99855935.94</string> </value> + <value> <string>ts00782283.02</string> </value> </item> <item> <key> <string>__name__</string> </key> @@ -155,7 +155,24 @@ function showPopik(dom_id, path){\n popup.html(popup_html);\n popup.show();\n }\n -} +}\n +\n +function initialize_form(){\n + /* \n + Pressing enter in an input field in editable_mode must called default form submit button.\n + Due to different browser implementations in regard to determing which is the *right*\n + form\'s submit button (in KM case we can have many) we explicitly catch events and call it.\n + */\n + if($("#input-save-edit")){\n + $(\'#main_form\').each(function() {\n + $(\'input\').keypress(function(e) {\n + if(e.which == 10 || e.which == 13) {$("#input-save-edit").click();}\n + });\n + })\n + }\n + }\n + \n +$(document).ready(initialize_form); ]]></string> </value> </item> @@ -165,7 +182,7 @@ function showPopik(dom_id, path){\n </item> <item> <key> <string>size</string> </key> - <value> <int>4458</int> </value> + <value> <int>5038</int> </value> </item> <item> <key> <string>title</string> </key> diff --git a/bt5/erp5_km/bt/revision b/bt5/erp5_km/bt/revision index e6ad4d71d64b0aab723fe17ea19c9ccb3d46d3ac..a10e1ce096a268911971e288eb26a427d5d6cea3 100644 --- a/bt5/erp5_km/bt/revision +++ b/bt5/erp5_km/bt/revision @@ -1 +1 @@ -1784 \ No newline at end of file +1785 \ No newline at end of file