]> git.joonet.de Git - adminer.git/commitdiff
Send the form by AJAX with Ctrl+Enter
authorJakub Vrana <jakub@vrana.cz>
Sun, 17 Oct 2010 06:02:12 +0000 (08:02 +0200)
committerJakub Vrana <jakub@vrana.cz>
Sun, 17 Oct 2010 06:02:12 +0000 (08:02 +0200)
adminer/select.inc.php
adminer/static/functions.js

index fd91e16a0bc5200232c43b3597bbcae5b8e1a27c..859de9796244fab20a211a9723ab4f1cb7831c11 100644 (file)
@@ -380,7 +380,7 @@ if (!$columns) {
                        if (!information_schema(DB)) {
                                ?>
 <fieldset><legend><?php echo lang('Edit'); ?></legend><div>
-<input type="submit" value="<?php echo lang('Save'); ?>" title="<?php echo lang('Double click on a value to modify it.'); ?>" onclick='return !ajaxForm(this.form);'>
+<input type="submit" id="save" value="<?php echo lang('Save'); ?>" title="<?php echo lang('Double click on a value to modify it.'); ?>" onclick='return !ajaxForm(this.form);'>
 <input type="submit" name="edit" value="<?php echo lang('Edit'); ?>">
 <input type="submit" name="clone" value="<?php echo lang('Clone'); ?>">
 <input type="submit" name="delete" value="<?php echo lang('Delete'); ?>" onclick="return confirm('<?php echo lang('Are you sure?'); ?> (' + (this.form['all'].checked ? <?php echo $found_rows; ?> : formChecked(this, /check/)) + ')');">
index 0a441d583195070e967d50296b94dce3ddba2b92..c1ebf6f9c9feab9566225370ac5df22d01c7c94b 100644 (file)
@@ -240,7 +240,7 @@ function selectDblClick(td, event, text) {
                });
                input.rows = rows;
                input.onkeydown = function (event) {
-                       return textareaKeydown(input, event || window.event);
+                       return textareaKeydown(input, event || window.event, false, document.getElementById('save'));
                };
        }
        if (document.selection) {