mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 20:12:14 +09:00
enter key bug fix
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12586 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d255f503b8
commit
9f109bc3e2
1 changed files with 3 additions and 3 deletions
|
|
@ -2437,12 +2437,12 @@ jQuery(function($){
|
||||||
});
|
});
|
||||||
|
|
||||||
jQuery(function($){
|
jQuery(function($){
|
||||||
$(document.body).on('keydown', 'input', function(ev){
|
$('#site,.x_modal._common').on('keydown', 'input', function(ev){
|
||||||
var $container, $btn;
|
var $container, $btn;
|
||||||
if(ev.keyCode === 13){
|
if(ev.keyCode === 13){
|
||||||
$container = $(ev.target).parent();
|
$container = $(ev.target).parent();
|
||||||
while($container){
|
while($container && !$container.hasClass('col')){
|
||||||
$btn = $container.find('button.x_btn-primary');
|
$btn = $container.find('button.x_btn-primary,button.x_btn-inverse');
|
||||||
if($btn.length>0){
|
if($btn.length>0){
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
$btn.click();
|
$btn.click();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue