The branch, master has been updated via 7210bc07aace2f41fe8ac33caaca24b5645586a9 (commit) from 896a6e0883f1bfdcf5a1ec2eb6404b3eb9e0e7d5 (commit)
- Log ----------------------------------------------------------------- commit 7210bc07aace2f41fe8ac33caaca24b5645586a9 Author: Marc Delisle marc@infomarc.info Date: Mon Mar 7 09:13:04 2011 -0500
Bug #3197273 Improve display of error message when creating a table
-----------------------------------------------------------------------
Summary of changes: js/functions.js | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/js/functions.js b/js/functions.js index 62ac60c..d790246 100644 --- a/js/functions.js +++ b/js/functions.js @@ -1764,7 +1764,9 @@ $(document).ready(function() { //User wants to submit the form $.post($form.attr('action'), $form.serialize() + "&do_save_data=" + $(this).val(), function(data) { if(data.success == true) { - $('#properties_message').html(''); + $('#properties_message') + .removeClass('error') + .html(''); PMA_ajaxShowMessage(data.message); // Only if the create table dialog (distinct panel) exists if ($("#create_table_dialog").length > 0) { @@ -1818,7 +1820,9 @@ $(document).ready(function() { window.parent.frame_navigation.location.reload(); } } else { - $('#properties_message').html(data.error); + $('#properties_message') + .addClass('error') + .html(data.error); } }) // end $.post() } // end if ($form.hasClass('ajax')
hooks/post-receive