From 1fc9371c6ca3551642b09d4ee2148df3fa89dc66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Fri, 28 Jan 2011 10:49:20 +0100 Subject: [PATCH] input element can not be under tr Confirmation for DROP index did not work. --- js/tbl_structure.js | 2 +- libraries/Index.class.php | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/js/tbl_structure.js b/js/tbl_structure.js index 6a7c773c7..2720b5104 100644 --- a/js/tbl_structure.js +++ b/js/tbl_structure.js @@ -119,7 +119,7 @@ $(document).ready(function() { */ 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) { diff --git a/libraries/Index.class.php b/libraries/Index.class.php index 53ea62db4..6fc0bec09 100644 --- a/libraries/Index.class.php +++ b/libraries/Index.class.php @@ -476,8 +476,9 @@ class PMA_Index $js_msg = PMA_jsFormat('ALTER TABLE ' . $table . ' DROP INDEX ' . $index->getName()); } - $r .= '' - . ' '; + $r .= ''; + $r .= ' ' . PMA_getIcon('b_drop.png', __('Drop')) . '' . '' . "\n"; - - $r .= ''; } $r .= '' . htmlspecialchars($index->getName()) . '';