From 34c68f8aad09967f3701f7d0f9a5126c826cc7af Mon Sep 17 00:00:00 2001 From: ninadsp Date: Tue, 29 Jun 2010 02:25:59 +0530 Subject: [PATCH] When dropping a table now, the entire row in the table of tables is removed on db_structure.php. --- js/functions.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/functions.js b/js/functions.js index 4d728e282..c46ae97da 100755 --- a/js/functions.js +++ b/js/functions.js @@ -1867,7 +1867,8 @@ $(document).ready(function() { event.preventDefault(); //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; $(this).PMA_confirm(question, $(this).attr('href'), function(url) { @@ -1878,7 +1879,7 @@ $(document).ready(function() { if(data.success == true) { PMA_ajaxShowMessage(data.message); //need to find a better solution here. The icon should be replaced - $(this).remove(); + $(curr_row).hide("medium").remove(); } else { PMA_ajaxShowMessage(PMA_messages['strErrorProcessingRequest'] + " : " + data.error);