]> git.joonet.de Git - adminer.git/commitdiff
IE6 compatibility
authorjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Sat, 13 Jun 2009 20:23:34 +0000 (20:23 +0000)
committerjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Sat, 13 Jun 2009 20:23:34 +0000 (20:23 +0000)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@681 7c3ca157-0c34-0410-bff1-cbf682f78f5c

db.inc.php
functions.js
include/editing.inc.php
todo.txt

index 556e37c9d207b750e270fb7673ecba5c156a473c..818b6ff48f47e0bc3285cac7aa1131616e78b7cc 100644 (file)
@@ -56,7 +56,7 @@ if (!$result->num_rows) {
                        echo '<th><a href="' . htmlspecialchars($SELF) . 'table=' . urlencode($name) . '">' . htmlspecialchars($name) . "</a></th><td>$row[Engine]</td><td>$row[Collation]</td>";
                        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 '<td align="right">' . (strlen($row[$key]) ? '<a href="' . htmlspecialchars("$SELF$link=") . urlencode($name) . '">' . ($key == "Rows" && $row["Engine"] == "InnoDB" && $val ? lang('~ %s', $val) : $val) . '</a>' : '&nbsp;') . '</td>';
+                               echo '<td align="right">' . (strlen($row[$key]) ? '<a href="' . htmlspecialchars("$SELF$link=") . urlencode($name) . '">' . str_replace(" ", "&nbsp;", ($key == "Rows" && $row["Engine"] == "InnoDB" && $val ? lang('~ %s', $val) : $val)) . '</a>' : '&nbsp;') . '</td>';
                        }
                        echo "<td>" . (strlen(trim($row["Comment"])) ? htmlspecialchars($row["Comment"]) : "&nbsp;") . "</td>";
                } else {
index b152a67622c7bc0f3751682bc389c695fcc7dd20..f9d4e4b5f6c0a38f03bb4b33fabe77523401d6a7 100644 (file)
@@ -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);
index a55e9612059f0962f3db3414d92503cc380c82f1..b715d1b96f1c4c70aea633cdc3e64a8a0a518fa9 100644 (file)
@@ -151,12 +151,11 @@ function edit_fields($fields, $collations, $type = "TABLE", $allowed = 0) {
 <td><input type="radio" name="auto_increment_col" value="<?php echo $i; ?>"<?php if ($field["auto_increment"]) { ?> checked="checked"<?php } ?> /></td>
 <td<?php echo ($column_comments ? "" : " class='hidden'"); ?>><input name="fields[<?php echo $i; ?>][comment]" value="<?php echo htmlspecialchars($field["comment"]); ?>" maxlength="255" /></td>
 <?php } ?>
-<td class="nowrap">
 <?php
-               echo "<input type='image' name='add[$i]' src='plus.gif' alt='+' title='" . lang('Add next') . "' onclick='return !editing_add_row(this, $allowed);' />\n";
-               echo "<input type='image' name='drop_col[$i]' src='cross.gif' alt='x' title='" . lang('Remove') . "' onclick='return !editing_remove_row(this);' />\n";
-               echo "<input type='image' name='up[$i]' src='up.gif' alt='^' title='" . lang('Move up') . "' />\n";
-               echo "<input type='image' name='down[$i]' src='down.gif' alt='v' title='" . lang('Move down') . "' />\n";
+               echo "<td><input type='image' name='add[$i]' src='plus.gif' alt='+' title='" . lang('Add next') . "' onclick='return !editing_add_row(this, $allowed);' />";
+               echo "&nbsp;<input type='image' name='drop_col[$i]' src='cross.gif' alt='x' title='" . lang('Remove') . "' onclick='return !editing_remove_row(this);' />";
+               echo "&nbsp;<input type='image' name='up[$i]' src='up.gif' alt='^' title='" . lang('Move up') . "' />";
+               echo "&nbsp;<input type='image' name='down[$i]' src='down.gif' alt='v' title='" . lang('Move down') . "' />";
                echo "</td>\n</tr>\n";
        }
        return $column_comments;
index 0217d9d4729418b1a1b1e85cb57a1df1ec883be2..be71d5c087869b1e44c2616ab7ec87e1a072824c 100644 (file)
--- a/todo.txt
+++ b/todo.txt
@@ -11,6 +11,7 @@ Utilize information_schema.USER_PRIVILEGES in Privileges
 Highlight SQL textarea - may use external CodePress
 Column and table names auto-completition in SQL textarea
 Mass editation of individual rows
+IE6 - <label for>
 ? Save token also to cookie - for session expiration and login in other window
 ? Save uploaded files after error to session variable instead of hidden field
 ? Aliasing of built-in functions can save 7 KB, substitution of $_GET and friends can save 2 KB, remove of base64_decode() + using chars 127-255 in minification can save 1 KB, JS packer can save 1 KB