When dropping a table now, the entire row in the table of tables is

removed on db_structure.php.
This commit is contained in:
ninadsp
2010-06-29 02:25:59 +05:30
parent ca764244a0
commit 34c68f8aad

View File

@@ -1867,7 +1867,8 @@ $(document).ready(function() {
event.preventDefault(); event.preventDefault();
//extract current table name and build the question string //extract current table name and build the question string
var curr_table_name = $(this).parents('tr').children('th').children('a').text(); var curr_row = $(this).parents('tr');
var curr_table_name = $(curr_row).children('th').children('a').text();
var question = 'DROP TABLE ' + curr_table_name; var question = 'DROP TABLE ' + curr_table_name;
$(this).PMA_confirm(question, $(this).attr('href'), function(url) { $(this).PMA_confirm(question, $(this).attr('href'), function(url) {
@@ -1878,7 +1879,7 @@ $(document).ready(function() {
if(data.success == true) { if(data.success == true) {
PMA_ajaxShowMessage(data.message); PMA_ajaxShowMessage(data.message);
//need to find a better solution here. The icon should be replaced //need to find a better solution here. The icon should be replaced
$(this).remove(); $(curr_row).hide("medium").remove();
} }
else { else {
PMA_ajaxShowMessage(PMA_messages['strErrorProcessingRequest'] + " : " + data.error); PMA_ajaxShowMessage(PMA_messages['strErrorProcessingRequest'] + " : " + data.error);