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

Auto-select index type after selecting column

This commit is contained in:
Jakub Vrana
2010-12-10 01:16:01 +01:00
parent 79c145a108
commit 30c4bec9a7

View File

@@ -322,6 +322,10 @@ function indexesAddColumn(field) {
input.name = input.name.replace(/\]\[\d+/, '$&1');
input.value = '';
field.parentNode.parentNode.appendChild(column);
select = field.form[field.name.replace(/\].*/, '][type]')];
if (!select.selectedIndex) {
select.selectedIndex = 3;
}
}