From 7210bc07aace2f41fe8ac33caaca24b5645586a9 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Mon, 7 Mar 2011 09:13:04 -0500 Subject: [PATCH] Bug #3197273 Improve display of error message when creating a table --- js/functions.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/js/functions.js b/js/functions.js index 62ac60c30..d7902462d 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')