From 2f910b937ed56562967ad104aba4e8cd9bfba137 Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Sat, 13 Jun 2009 20:23:34 +0000 Subject: [PATCH] IE6 compatibility git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@681 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- db.inc.php | 2 +- functions.js | 2 ++ include/editing.inc.php | 9 ++++----- todo.txt | 1 + 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/db.inc.php b/db.inc.php index 556e37c9..818b6ff4 100644 --- a/db.inc.php +++ b/db.inc.php @@ -56,7 +56,7 @@ if (!$result->num_rows) { echo '' . htmlspecialchars($name) . "$row[Engine]$row[Collation]"; foreach (array("Data_length" => "create", "Index_length" => "indexes", "Data_free" => "edit", "Auto_increment" => "create", "Rows" => "select") as $key => $link) { $val = number_format($row[$key], 0, '.', lang(',')); - echo '' . (strlen($row[$key]) ? '' . ($key == "Rows" && $row["Engine"] == "InnoDB" && $val ? lang('~ %s', $val) : $val) . '' : ' ') . ''; + echo '' . (strlen($row[$key]) ? '' . str_replace(" ", " ", ($key == "Rows" && $row["Engine"] == "InnoDB" && $val ? lang('~ %s', $val) : $val)) . '' : ' ') . ''; } echo "" . (strlen(trim($row["Comment"])) ? htmlspecialchars($row["Comment"]) : " ") . ""; } else { diff --git a/functions.js b/functions.js index b152a676..f9d4e4b5 100644 --- a/functions.js +++ b/functions.js @@ -97,9 +97,11 @@ function editing_add_row(button, allowed) { tags2[i].selectedIndex = tags[i].selectedIndex; } tags = row.getElementsByTagName('input'); + tags2 = row2.getElementsByTagName('input'); for (var i=0; i < tags.length; i++) { if (tags[i].name == 'auto_increment_col') { tags[i].value = x; + tags2[i].checked = tags[i].checked; tags[i].checked = false; } tags[i].name = tags[i].name.replace(/([0-9.]+)/, x); diff --git a/include/editing.inc.php b/include/editing.inc.php index a55e9612..b715d1b9 100644 --- a/include/editing.inc.php +++ b/include/editing.inc.php @@ -151,12 +151,11 @@ function edit_fields($fields, $collations, $type = "TABLE", $allowed = 0) { checked="checked" />