When enter key is pressed for a multi-lang input field, blur the field first before pressing the submit button

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12621 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
nagoon97 2013-01-30 10:55:40 +00:00
parent ad8e34f86e
commit 7cb017ac3d

View file

@ -2440,6 +2440,9 @@ jQuery(function($){
while($container && !$container.hasClass('col')){
$btn = $container.find('button.x_btn-primary,button.x_btn-inverse');
if($btn.length>0){
// multi-lang field won't set the value until the input element is blured
if($(ev.target).hasClass('displayInput')) $(ev.target).blur();
ev.preventDefault();
$btn.click();
break;