From e7877fba46743be0b351c526ccac216731ab8c1e Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Sun, 20 Nov 2011 23:30:30 +0530 Subject: [PATCH] bug #3425156 [interface] Add column after drop --- ChangeLog | 1 + js/tbl_structure.js | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6bbc4e648..7d5cf3d88 100644 --- a/ChangeLog +++ b/ChangeLog @@ -17,6 +17,7 @@ phpMyAdmin - ChangeLog - [interface] When ShowTooltipAliasTB is true, VIEW is wrongly shown as the view name in main panel db Structure page - bug #3439292 [core] Fail to synchronize column with name of keyword +- bug #3425156 [interface] Add column after drop 3.4.7.1 (2011-11-10) - [security] Fixed possible local file inclusion in XML import diff --git a/js/tbl_structure.js b/js/tbl_structure.js index 493f0eb4e..97ec6c27f 100644 --- a/js/tbl_structure.js +++ b/js/tbl_structure.js @@ -41,6 +41,10 @@ $(document).ready(function() { * @var curr_column_name String containing name of the field referred to by {@link curr_row} */ var curr_column_name = $(curr_row).children('th').children('label').text(); + /** + * @var $after_field_item Corresponding entry in the 'After' field. + */ + var $after_field_item = $("select[name='after_field'] option[value='" + curr_column_name + "']"); /** * @var question String containing the question to be asked for confirmation */ @@ -53,6 +57,7 @@ $(document).ready(function() { $.get(url, {'is_js_confirmed' : 1, 'ajax_request' : true}, function(data) { if(data.success == true) { PMA_ajaxShowMessage(data.message); + $after_field_item.remove(); $(curr_row).hide("medium").remove(); } else {