input element can not be under tr
Confirmation for DROP index did not work.
This commit is contained in:
@@ -119,7 +119,7 @@ $(document).ready(function() {
|
|||||||
*/
|
*/
|
||||||
var curr_row = $(this).parents('tr');
|
var curr_row = $(this).parents('tr');
|
||||||
|
|
||||||
var question = $(curr_row).children('.drop_primary_key_index_msg').val();
|
var question = $(curr_row).children('td').children('.drop_primary_key_index_msg').val();
|
||||||
|
|
||||||
$(this).PMA_confirm(question, $(this).attr('href'), function(url) {
|
$(this).PMA_confirm(question, $(this).attr('href'), function(url) {
|
||||||
|
|
||||||
|
@@ -476,8 +476,9 @@ class PMA_Index
|
|||||||
$js_msg = PMA_jsFormat('ALTER TABLE ' . $table . ' DROP INDEX ' . $index->getName());
|
$js_msg = PMA_jsFormat('ALTER TABLE ' . $table . ' DROP INDEX ' . $index->getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
$r .= '<td ' . $row_span . '>'
|
$r .= '<td ' . $row_span . '>';
|
||||||
. ' <a ';
|
$r .= '<input type="hidden" class="drop_primary_key_index_msg" value="' . $js_msg . '" />';
|
||||||
|
$r .= ' <a ';
|
||||||
if ($GLOBALS['cfg']['AjaxEnable']) {
|
if ($GLOBALS['cfg']['AjaxEnable']) {
|
||||||
$r .= 'class="drop_primary_key_index_anchor" ';
|
$r .= 'class="drop_primary_key_index_anchor" ';
|
||||||
}
|
}
|
||||||
@@ -485,8 +486,6 @@ class PMA_Index
|
|||||||
. '" >'
|
. '" >'
|
||||||
. PMA_getIcon('b_drop.png', __('Drop')) . '</a>'
|
. PMA_getIcon('b_drop.png', __('Drop')) . '</a>'
|
||||||
. '</td>' . "\n";
|
. '</td>' . "\n";
|
||||||
|
|
||||||
$r .= '<input type="hidden" class="drop_primary_key_index_msg" value="' . $js_msg . '" />';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$r .= '<th ' . $row_span . '>' . htmlspecialchars($index->getName()) . '</th>';
|
$r .= '<th ' . $row_span . '>' . htmlspecialchars($index->getName()) . '</th>';
|
||||||
|
Reference in New Issue
Block a user