diff --git a/js/tbl_structure.js b/js/tbl_structure.js index ea043e557a..4ffc939ba8 100644 --- a/js/tbl_structure.js +++ b/js/tbl_structure.js @@ -150,7 +150,7 @@ AJAX.registerOnload('tbl_structure.js', function() { var question = $.sprintf(PMA_messages['strDoYouReally'], 'ALTER TABLE `' + escapeHtml(curr_table_name) + '` DROP `' + escapeHtml(curr_column_name) + '`;'); $(this).PMA_confirm(question, $(this).attr('href'), function(url) { var $msg = PMA_ajaxShowMessage(PMA_messages['strDroppingColumn'], false); - $.get(url, {'is_js_confirmed' : 1, 'ajax_request' : true}, function(data) { + $.get(url, {'is_js_confirmed' : 1, 'ajax_request' : true, 'ajax_page_request' : true}, function (data) { if (data.success == true) { PMA_ajaxRemoveMessage($msg); if ($('#result_query').length) { @@ -169,8 +169,12 @@ AJAX.registerOnload('tbl_structure.js', function() { } $after_field_item.remove(); $curr_row.hide("medium").remove(); + //refresh table stats + if (data.tableStat) { + $('#tablestatistics').html(data.tableStat); + } // refresh the list of indexes (comes from sql.php) - $('#indexes').html(data.indexes_list); + $('.index_info').replaceWith(data.indexes_list); PMA_reloadNavigation(); } else { PMA_ajaxShowMessage(PMA_messages['strErrorProcessingRequest'] + " : " + data.error, false); diff --git a/libraries/Index.class.php b/libraries/Index.class.php index 152b155475..c349ea4d53 100644 --- a/libraries/Index.class.php +++ b/libraries/Index.class.php @@ -532,7 +532,7 @@ class PMA_Index $no_indexes .= ''; if (! $print_mode) { - $r = '