mirror of
https://github.com/vrana/adminer.git
synced 2025-08-13 18:14:07 +02:00
Toggle className instead of display
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@565 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -233,10 +233,10 @@ function type_change(type) {
|
|||||||
for (var i=0; i < type.form.elements.length; i++) {
|
for (var i=0; i < type.form.elements.length; i++) {
|
||||||
var el = type.form.elements[i];
|
var el = type.form.elements[i];
|
||||||
if (el.name == name + '[collation]') {
|
if (el.name == name + '[collation]') {
|
||||||
el.style.display = (/char|text|enum|set/.test(type.options[type.selectedIndex].text) ? '' : 'none');
|
el.className = (/char|text|enum|set/.test(type.options[type.selectedIndex].text) ? '' : 'hidden');
|
||||||
}
|
}
|
||||||
if (el.name == name + '[unsigned]') {
|
if (el.name == name + '[unsigned]') {
|
||||||
el.style.display = (/int|float|double|decimal/.test(type.options[type.selectedIndex].text) ? '' : 'none');
|
el.className = (/int|float|double|decimal/.test(type.options[type.selectedIndex].text) ? '' : 'hidden');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user