]> git.joonet.de Git - adminer.git/commitdiff
Save and continue by AJAX
authorJakub Vrana <jakub@vrana.cz>
Sun, 17 Oct 2010 22:09:29 +0000 (00:09 +0200)
committerJakub Vrana <jakub@vrana.cz>
Sun, 17 Oct 2010 22:09:29 +0000 (00:09 +0200)
adminer/edit.inc.php

index 5a7c73e777330b271961fa78ecf650406f776e99..32424b2df0c2da3b5c70ea77a3153d543bf2d6aa 100644 (file)
@@ -100,7 +100,7 @@ if (isset($_GET["select"])) {
 if ($fields) {
        echo "<input type='submit' value='" . lang('Save') . "'>\n";
        if (!isset($_GET["select"])) {
-               echo '<input type="submit" name="insert" value="' . ($update ? lang('Save and continue edit') : lang('Save and insert next')) . "\">\n";
+               echo '<input type="submit" name="insert" value="' . ($update ? lang('Save and continue edit') : lang('Save and insert next')) . "\" onclick=\"return !ajaxForm(this.form, 'insert=1');\">\n";
        }
 }
 if ($update) {