From: Jakub Vrana Date: Mon, 24 Jun 2013 17:04:59 +0000 (-0700) Subject: SQLite: Preselect index type after adding a column X-Git-Tag: v3.7.1~7 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=3a8191b7ac961fde6134f43d7915b26a0f1e38c4;p=adminer.git SQLite: Preselect index type after adding a column --- diff --git a/adminer/static/editing.js b/adminer/static/editing.js index e639274e..316a177f 100644 --- a/adminer/static/editing.js +++ b/adminer/static/editing.js @@ -503,7 +503,7 @@ function indexesAddColumn(field, prefix) { }; var select = field.form[field.name.replace(/\].*/, '][type]')]; if (!select.selectedIndex) { - select.selectedIndex = 3; + select.selectedIndex = select.options.length - 1; select.onchange(); } var column = cloneNode(field.parentNode);