[Erp5-report] r44488 ivan - in /erp5/trunk/bt5/erp5_km: SkinTemplateItem/portal_skins/erp5_...
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Mar 22 09:30:23 CET 2011
Author: ivan
Date: Tue Mar 22 09:30:23 2011
New Revision: 44488
URL: http://svn.erp5.org?rev=44488&view=rev
Log:
Pressing enter in an input field in editable_mode must called default form submit button.
Due to different browser implementations in regard to determing which is the *right*
form's submit button (in KM case we can have two or more) we explicitly catch events and call it.
Modified:
erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/km_js/erp5_km.js.xml
erp5/trunk/bt5/erp5_km/bt/revision
Modified: erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/km_js/erp5_km.js.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/km_js/erp5_km.js.xml?rev=44488&r1=44487&r2=44488&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/km_js/erp5_km.js.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/km_js/erp5_km.js.xml [utf8] Tue Mar 22 09:30:23 2011
@@ -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>
Modified: erp5/trunk/bt5/erp5_km/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_km/bt/revision?rev=44488&r1=44487&r2=44488&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_km/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_km/bt/revision [utf8] Tue Mar 22 09:30:23 2011
@@ -1 +1 @@
-1784
\ No newline at end of file
+1785
\ No newline at end of file
More information about the Erp5-report
mailing list