]> git.joonet.de Git - adminer.git/commitdiff
Focus inserted row
authorjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Sat, 4 Aug 2007 19:36:41 +0000 (19:36 +0000)
committerjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Sat, 4 Aug 2007 19:36:41 +0000 (19:36 +0000)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@292 7c3ca157-0c34-0410-bff1-cbf682f78f5c

editing.inc.php

index ae455c0b85160a10b27912ea759f3798b030bca1..964e185caa4e4052702c18cbdf3ed665f3a50f50 100644 (file)
@@ -102,7 +102,7 @@ function edit_fields($fields, $collations, $type = "TABLE") {
                ?>
 <tr>
 <?php if ($type == "PROCEDURE") { ?><td><select name="fields[<?php echo $i; ?>][inout]"><?php echo optionlist($inout, $field["inout"]); ?></select></td><?php } ?>
-<th><input type="hidden" name="fields[<?php echo $i; ?>][orig]" value="<?php echo htmlspecialchars($field[($_POST ? "orig" : "field")]); ?>" /><input name="fields[<?php echo $i; ?>][field]" value="<?php echo ($_POST["drop_col"][$i] ? "" : htmlspecialchars($field["field"])); ?>" maxlength="64" /></th>
+<th><input name="fields[<?php echo $i; ?>][field]" value="<?php echo ($_POST["drop_col"][$i] ? "" : htmlspecialchars($field["field"])); ?>" maxlength="64" /><input type="hidden" name="fields[<?php echo $i; ?>][orig]" value="<?php echo htmlspecialchars($field[($_POST ? "orig" : "field")]); ?>" /></th>
 <?php edit_type("fields[$i]", $field, $collations); ?>
 <?php if ($type == "TABLE") { ?>
 <td><input type="checkbox" name="fields[<?php echo $i; ?>][null]" value="1"<?php if ($field["null"]) { ?> checked="checked"<?php } ?> /></td>
@@ -145,6 +145,7 @@ function add_row(button) {
                }
        }
        row.parentNode.insertBefore(row2, row);
+       tags[0].focus();
        added += '0';
        return true;
 }