From 63a224b05af1fc40cdf28a66f309ece251a0983b Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 23 Jan 2011 07:34:50 -0500 Subject: [PATCH] Bug #3163260 Database copy: Error hides too quickly --- js/db_operations.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/js/db_operations.js b/js/db_operations.js index 93d13c479..0f9240a44 100644 --- a/js/db_operations.js +++ b/js/db_operations.js @@ -91,8 +91,11 @@ $(document).ready(function() { } $.get($form.attr('action'), $form.serialize(), function(data) { + // use messages that stay on screen + $('.success').fadeOut(); + $('.error').fadeOut(); if(data.success == true) { - PMA_ajaxShowMessage(data.message); + $('#topmenucontainer').after(data.message); if( $("#checkbox_switch").is(":checked")) { window.parent.db = data.newname; window.parent.refreshMain(); @@ -100,7 +103,7 @@ $(document).ready(function() { } } else { - PMA_ajaxShowMessage(data.error); + $('#topmenucontainer').after(data.error); } }) // end $.get }) // end copy database