mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
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:
parent
ad8e34f86e
commit
7cb017ac3d
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue