]> git.joonet.de Git - adminer.git/commitdiff
Autofocus comment after enabling
authorJakub Vrana <jakub@vrana.cz>
Mon, 14 Jun 2010 14:42:04 +0000 (16:42 +0200)
committerJakub Vrana <jakub@vrana.cz>
Mon, 14 Jun 2010 14:42:04 +0000 (16:42 +0200)
adminer/create.inc.php

index e219c00e0487e5338dbd35cb853be08110923b8c..2bb20a0ec9f72f7511a03f18c7676365cde129a0 100644 (file)
@@ -161,7 +161,7 @@ foreach ($engines as $engine) {
 <script type="text/javascript">
 document.write('<label><input type="checkbox" onclick="columnShow(this.checked, 5);"><?php echo lang('Default values'); ?><\/label>');
 </script>
-<?php echo (support("comment") ? checkbox("", "", $comments, lang('Comment'), "columnShow(this.checked, 6); toggle('Comment');") . ' <input id="Comment" name="Comment" value="' . h($row["Comment"]) . '" maxlength="60"' . ($comments ? '' : ' class="hidden"') . '>' : ''); ?>
+<?php echo (support("comment") ? checkbox("", "", $comments, lang('Comment'), "columnShow(this.checked, 6); toggle('Comment'); if (this.checked) this.form['Comment'].focus();") . ' <input id="Comment" name="Comment" value="' . h($row["Comment"]) . '" maxlength="60"' . ($comments ? '' : ' class="hidden"') . '>' : ''); ?>
 <p>
 <input type="hidden" name="token" value="<?php echo $token; ?>">
 <input type="submit" value="<?php echo lang('Save'); ?>">