1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-09 16:17:48 +02:00

SQLite: Preselect index type after adding a column

This commit is contained in:
Jakub Vrana
2013-06-24 10:04:59 -07:00
parent 7dd454f0b4
commit 3a8191b7ac

View File

@@ -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);