From 9c53f1f204ab1c7c84710f611b19eb1723d4dd2d Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Wed, 21 Mar 2012 10:24:08 -0400 Subject: [PATCH] The technique to hide elements based on their class did not work if an element has more than one class, which is the case now; so I replaced the class with a more general one and I replaced the jQuery selector. --- js/functions.js | 7 +------ tbl_structure.php | 14 +++++++------- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/js/functions.js b/js/functions.js index 53b34369fa..07b4fcbc71 100644 --- a/js/functions.js +++ b/js/functions.js @@ -2671,12 +2671,7 @@ function displayMoreTableOpts() // if the table is not a view or information_schema (otherwise there is only one action to hide and there's no point) if($("input[type='hidden'][name='table_type']").val() == "table") { var $table = $("table[id='tablestructure']"); - $table.find("td[class='browse']").remove(); - $table.find("td[class='primary']").remove(); - $table.find("td[class='unique']").remove(); - $table.find("td[class='index']").remove(); - $table.find("td[class='fulltext']").remove(); - $table.find("td[class='spatial']").remove(); + $table.find("td.replaced_by_more").remove(); $table.find("th[class='action']").attr("colspan", 3); // Display the "more" text diff --git a/tbl_structure.php b/tbl_structure.php index 6944c69911..285457f327 100644 --- a/tbl_structure.php +++ b/tbl_structure.php @@ -359,7 +359,7 @@ foreach ($fields as $row) { echo '' . _pgettext('None for default', 'None') . ''; } ?> - + @@ -372,7 +372,7 @@ foreach ($fields as $row) { href="sql.php?&sql_query=&dropped_column=&message_to_show=" > - + hasColumn($field_name))) { echo $titles['NoPrimary'] . "\n"; @@ -387,7 +387,7 @@ foreach ($fields as $row) { echo "\n"; ?> - + - + - + - + @@ -453,7 +453,7 @@ foreach ($fields as $row) { } else { echo "\n"; ?> - +