mirror of
https://github.com/vrana/adminer.git
synced 2025-08-15 02:54:28 +02:00
Send form by AJAX on Ctrl+Enter
This commit is contained in:
@@ -194,9 +194,10 @@ function textareaKeydown(target, event, tab, button) {
|
||||
target.blur();
|
||||
if (button) {
|
||||
button.click();
|
||||
} else if (!target.form.onsubmit || target.form.onsubmit() !== false) {
|
||||
} else if ((!target.form.onsubmit || target.form.onsubmit() !== false) && !ajaxForm(target.form)) {
|
||||
target.form.submit();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user