bug #3425156 [interface] Add column after drop

This commit is contained in:
Madhura Jayaratne
2011-11-20 23:30:30 +05:30
parent 81f6766f96
commit e7877fba46
2 changed files with 6 additions and 0 deletions

View File

@@ -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

View File

@@ -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 {