From ac7cab7160e52a710bb3a6c606efebfbfa652271 Mon Sep 17 00:00:00 2001 From: ninadsp Date: Sat, 26 Jun 2010 15:45:27 +0530 Subject: [PATCH] Revert "Revert "Merge remote branch 'origin/master'"" This reverts commit 4214d83e123e4246c5e10963f607b33f8d301d35. --- ChangeLog | 4 +++ js/functions.js | 49 ++++++++++++++++++++------ js/tbl_operations.js | 10 +++--- libraries/display_create_table.lib.php | 3 +- libraries/mysql_charsets.lib.php | 12 ++++++- libraries/tbl_properties.inc.php | 2 +- po/cy.po | 44 ++++++++++++----------- po/pt_BR.po | 2 +- po/tr.po | 14 ++++---- tbl_create.php | 2 ++ 10 files changed, 95 insertions(+), 47 deletions(-) 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; ?> -
+
- + \n" +"POT-Creation-Date: 2010-06-13 09:03-0400\n" +"PO-Revision-Date: 2010-06-21 19:58+0200\n" +"Last-Translator: Burak \n" "Language-Team: turkish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -96,7 +96,7 @@ msgstr "Veritabanı %1$s oluşturuldu." #: db_datadict.php:49 db_operations.php:387 msgid "Database comment: " -msgstr "Veritabanı yorumu: " +msgstr "Veritabanı yorumu:" #: db_datadict.php:165 libraries/tbl_properties.inc.php:724 #: pdf_schema.php:1236 tbl_operations.php:347 tbl_printview.php:130 @@ -1631,7 +1631,7 @@ msgstr "%s dosyası herhangi bir anahtar kimliği içermiyor" #: libraries/auth/swekey/swekey.auth.lib.php:157 #: libraries/auth/swekey/swekey.auth.lib.php:180 msgid "Hardware authentication failed" -msgstr "Donanım kimlik denetimi başarısız" +msgstr "Donanım kimlik doğrulama başarısız" #: libraries/auth/swekey/swekey.auth.lib.php:166 msgid "No valid authentication key plugged" @@ -1639,7 +1639,7 @@ msgstr "Geçerli kimlik denetimi anahtarı takılı değil" #: libraries/auth/swekey/swekey.auth.lib.php:202 msgid "Authenticating..." -msgstr "Kimlik denetleniyor..." +msgstr "Kimlik doğrulanıyor..." #: libraries/blobstreaming.lib.php:689 msgid "View image" @@ -1651,7 +1651,7 @@ msgstr "Ses çal" #: libraries/blobstreaming.lib.php:698 msgid "View video" -msgstr "Videoyu göster" +msgstr "Görüntüyü göster" #: libraries/blobstreaming.lib.php:702 msgid "Download file" diff --git a/tbl_create.php b/tbl_create.php index 02c637dff..169960bb1 100755 --- a/tbl_create.php +++ b/tbl_create.php @@ -249,6 +249,8 @@ if (isset($_REQUEST['do_save_data'])) { $message = PMA_Message::success(__('Table %1$s has been created.')); $message->addParam(PMA_backquote($db) . '.' . PMA_backquote($table)); + PMA_ajaxResponse($message, $message->isSuccess()); + $display_query = $sql_query; $sql_query = '';