input element can not be under tr

Confirmation for DROP index did not work.
This commit is contained in:
Michal Čihař
2011-01-28 10:49:20 +01:00
parent 85ab22ddc0
commit 1fc9371c6c
2 changed files with 4 additions and 5 deletions

View File

@@ -476,8 +476,9 @@ class PMA_Index
$js_msg = PMA_jsFormat('ALTER TABLE ' . $table . ' DROP INDEX ' . $index->getName());
}
$r .= '<td ' . $row_span . '>'
. ' <a ';
$r .= '<td ' . $row_span . '>';
$r .= '<input type="hidden" class="drop_primary_key_index_msg" value="' . $js_msg . '" />';
$r .= ' <a ';
if ($GLOBALS['cfg']['AjaxEnable']) {
$r .= 'class="drop_primary_key_index_anchor" ';
}
@@ -485,8 +486,6 @@ class PMA_Index
. '" >'
. PMA_getIcon('b_drop.png', __('Drop')) . '</a>'
. '</td>' . "\n";
$r .= '<input type="hidden" class="drop_primary_key_index_msg" value="' . $js_msg . '" />';
}
$r .= '<th ' . $row_span . '>' . htmlspecialchars($index->getName()) . '</th>';