mirror of
https://github.com/vrana/adminer.git
synced 2026-07-08 16:03:29 +02:00
IE fixes
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@549 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -225,8 +225,15 @@ function remove_row(button) {
|
||||
}
|
||||
function type_change(type) {
|
||||
var name = type.name.substr(0, type.name.length - 6);
|
||||
type.form[name + '[collation]'].style.display = (/char|text|enum|set/.test(type.options[type.selectedIndex].text) ? '' : 'none');
|
||||
type.form[name + '[unsigned]'].style.display = (/int|float|double|decimal/.test(type.options[type.selectedIndex].text) ? '' : 'none');
|
||||
for (var i=0; i < type.form.elements.length; i++) {
|
||||
var el = type.form.elements[i];
|
||||
if (el.name == name + '[collation]') {
|
||||
el.style.display = (/char|text|enum|set/.test(type.options[type.selectedIndex].text) ? '' : 'none');
|
||||
}
|
||||
if (el.name == name + '[unsigned]') {
|
||||
el.style.display = (/int|float|double|decimal/.test(type.options[type.selectedIndex].text) ? '' : 'none');
|
||||
}
|
||||
}
|
||||
}
|
||||
for (var i=1; <?php echo $count; ?> >= i; i++) {
|
||||
document.getElementById('form')['fields[' + i + '][type]'].onchange();
|
||||
|
||||
Reference in New Issue
Block a user