From c0cb47265649f33cb77cad4a73dff54ed1bd2556 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 25 Oct 2010 17:46:00 +0200 Subject: [PATCH] Reload navigation frame after creating database (bug #3081099). --- js/functions.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/functions.js b/js/functions.js index 472eb003c..9facf224a 100644 --- a/js/functions.js +++ b/js/functions.js @@ -2298,6 +2298,10 @@ $(document).ready(function() { var $databases_count_object = $('#databases_count'); var databases_count = parseInt($databases_count_object.text()); $databases_count_object.text(++databases_count); + //Refresh navigation frame as a new database has been added + if (window.parent && window.parent.frame_navigation) { + window.parent.frame_navigation.location.reload(); + } } else { PMA_ajaxShowMessage(data.error);