mirror of
https://github.com/vrana/adminer.git
synced 2025-08-11 00:54:08 +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.name = input.name.replace(/\]\[\d+/, '$&1');
|
||||||
input.value = '';
|
input.value = '';
|
||||||
field.parentNode.parentNode.appendChild(column);
|
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