From 71430ee4b4a12fc67074bbcd3255b7306ddf0572 Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Thu, 22 Jan 2009 17:29:11 +0000 Subject: [PATCH] IE fixes git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@549 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- editing.inc.php | 11 +++++++++-- select.inc.php | 11 ++++++++--- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/editing.inc.php b/editing.inc.php index a8cdb824..12d7e199 100644 --- a/editing.inc.php +++ b/editing.inc.php @@ -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; >= i; i++) { document.getElementById('form')['fields[' + i + '][type]'].onchange(); diff --git a/select.inc.php b/select.inc.php index 4cb70000..046ac5ca 100644 --- a/select.inc.php +++ b/select.inc.php @@ -191,7 +191,7 @@ function add_row(field) { foreach ((array) $_GET["where"] as $val) { if (strlen("$val[col]$val[val]") && in_array($val["op"], $operators)) { echo "
"; - echo ""; + echo ""; echo "
\n"; $i++; } @@ -199,7 +199,12 @@ function add_row(field) { ?> "; - echo ""; + echo ""; echo "\n"; echo "\n";