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]')]; var select = field.form[field.name.replace(/\].*/, '][type]')];
if (!select.selectedIndex) { if (!select.selectedIndex) {
select.selectedIndex = 3; select.selectedIndex = select.options.length - 1;
select.onchange(); select.onchange();
} }
var column = cloneNode(field.parentNode); var column = cloneNode(field.parentNode);