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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user