From a76c555bc10bce2aae7a3d4e3b2d27cff49183d7 Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Thu, 11 Jun 2009 04:50:35 +0000 Subject: [PATCH] Remove odd() from create git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@663 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- _compile.php | 4 ++-- functions.js | 1 - include/editing.inc.php | 15 ++++++--------- todo.txt | 2 ++ 4 files changed, 10 insertions(+), 12 deletions(-) diff --git a/_compile.php b/_compile.php index f20ad259..ad77f440 100644 --- a/_compile.php +++ b/_compile.php @@ -175,8 +175,8 @@ if ($_COOKIE["lang"]) { $file = preg_replace_callback("~lang\\('((?:[^\\\\']+|\\\\.)*)'([,)])~s", 'lang_ids', $file); } $replace = 'htmlspecialchars(preg_replace("~\\\\\\\\?.*~", "", $_SERVER["REQUEST_URI"])) . "?file=\\0&version=' . $VERSION; -$file = preg_replace('~default\\.css|functions\\.js|favicon\\.ico|(plus|cross)\\.gif~', '', $file); -$file = preg_replace('~(up|down|arrow)\\.gif~', '" . ' . $replace, $file); +$file = preg_replace('~default\\.css|functions\\.js|favicon\\.ico~', '', $file); +$file = preg_replace('~(plus|cross|up|down|arrow)\\.gif~', '" . ' . $replace, $file); $file = str_replace('error_reporting(E_ALL & ~E_NOTICE);', 'error_reporting(E_ALL & ~E_NOTICE); if (isset($_GET["file"])) { header("Expires: " . gmdate("D, d M Y H:i:s", time() + 365*24*60*60) . " GMT"); diff --git a/functions.js b/functions.js index 1a7aec05..b152a676 100644 --- a/functions.js +++ b/functions.js @@ -118,7 +118,6 @@ function editing_remove_row(button) { var field = button.form[button.name.replace(/drop_col(.+)/, 'fields$1[field]')]; field.parentNode.removeChild(field); button.parentNode.parentNode.style.display = 'none'; - //! should change class="odd" of next rows return true; } diff --git a/include/editing.inc.php b/include/editing.inc.php index c3629132..f40ffb6e 100644 --- a/include/editing.inc.php +++ b/include/editing.inc.php @@ -142,7 +142,7 @@ function edit_fields($fields, $collations, $type = "TABLE", $allowed = 0) { $i++; $display = (isset($_POST["add"][$i-1]) || (isset($field["field"]) && !$_POST["drop_col"][$i])); ?> -> +> " maxlength="64" />" /> @@ -152,15 +152,12 @@ function edit_fields($fields, $collations, $type = "TABLE", $allowed = 0) {