diff --git a/ChangeLog b/ChangeLog index 5e55d9c6e..4572a255d 100755 --- a/ChangeLog +++ b/ChangeLog @@ -85,6 +85,10 @@ $Id$ - patch #2999595, rfe #2998130 [interface] Cleanup navigation frame. - [core] Update library PHPExcel to version 1.7.3c +3.3.5.0 (not yet released) +- patch #2932113 [information_schema] Slow export when having lots of + databases, thanks to Stéphane Pontier - shadow_walker + 3.3.4.0 (not yet released) - bug #2996161 [import] properly escape import value - bug #2998889 [import] Import button does not work in Catalan diff --git a/js/functions.js b/js/functions.js index aa1ced89c..a4827957b 100755 --- a/js/functions.js +++ b/js/functions.js @@ -1893,7 +1893,7 @@ $(document).ready(function() { var curr_table_name = window.parent.table; var curr_column_name = $(this).parents('tr').children('th').children('label').text(); - var question = PMA_message['strDoYouReally'] + ' :\n ALTER TABLE `' + curr_table_name + '` DROP `' + curr_column_name + '`'; + var question = PMA_messages['strDoYouReally'] + ' :\n ALTER TABLE `' + curr_table_name + '` DROP `' + curr_column_name + '`'; $(this).PMA_confirm(question, $(this).attr('href'), function(url) { @@ -1943,6 +1943,8 @@ $(document).ready(function() { * libraries/display_create_table.lib.php is used) */ $(document).ready(function() { + + //make Ajax call and create the dialog with the full create table form $("#create_table_form_minimal").live('submit', function(event) { event.preventDefault(); @@ -1957,13 +1959,40 @@ $(document).ready(function() { .dialog({ title: PMA_messages['strCreateTable'], width: 900, - buttons : { - "Create Table" : function() { - $('#create_table_form').trigger("submit"); - }, - "Cancel" : function() {$(this).dialog('close').remove() ;} + buttons : {"Cancel" : function() {$(this).dialog('close').remove() ;} } - }); - }) - }) -}, 'top.frame_content'); \ No newline at end of file + }); // end dialog options + }) // end $.get() + + }); + + $("#create_table_form").find("input[name=submit_num_fields], input[name=do_save_data]").live('click', function(event) { + event.preventDefault(); + + var the_form = $("#create_table_form"); + + PMA_ajaxShowMessage(PMA_messages['strProcessingRequest']); + $(the_form).append(''); + + if($(this).attr('name') == 'submit_num_fields') { + //User wants to add more fields to the table + $.post($(the_form).attr('action'), $(the_form).serialize() + "&submit_num_fields=" + $(this).val(), function(data) { + $("#create_table_dialog").html(data); + + }) //end $.post() + } + else if($(this).attr('name') == 'do_save_data') { + //User wants to submit the form + $.post($(the_form).attr('action'), $(the_form).serialize() + "&do_save_data=" + $(this).val(), function(data) { + if(data.success == true) { + PMA_ajaxShowMessage(data.message); + $("#create_table_dialog").dialog("close").remove(); + } + else { + PMA_ajaxShowMessage(data.error); + } + }) // end $.post() + } + }) // end create table form submit button actions + +}, 'top.frame_content'); //end $(document).ready for 'Create Table' \ No newline at end of file diff --git a/js/tbl_operations.js b/js/tbl_operations.js index e8331e679..c74cc60c0 100644 --- a/js/tbl_operations.js +++ b/js/tbl_operations.js @@ -8,11 +8,11 @@ /** * Add all AJAX scripts for tbl_operations.php page here. * - * Alter table order - * Move Table - * Table Options - * Copy Table - * Table Maintenance + * Alter table order - #div_table_order form + * Move Table - #div_table_rename form + * Table Options - #div_table_options form + * Copy Table - #div_table_copy form + * Table Maintenance - #div_table_maintenance (need to id each anchor) * Check * Repair * Analyze diff --git a/libraries/display_create_table.lib.php b/libraries/display_create_table.lib.php index 8f1b740a6..fd59480cb 100755 --- a/libraries/display_create_table.lib.php +++ b/libraries/display_create_table.lib.php @@ -37,8 +37,7 @@ require_once './libraries/check_user_privileges.lib.php'; $is_create_table_priv = true; ?> -