Reload navigation frame after creating database (bug #3081099).

This commit is contained in:
Michal Čihař
2010-10-25 17:46:00 +02:00
parent 49b6510b95
commit c0cb472656

View File

@@ -2298,6 +2298,10 @@ $(document).ready(function() {
var $databases_count_object = $('#databases_count'); var $databases_count_object = $('#databases_count');
var databases_count = parseInt($databases_count_object.text()); var databases_count = parseInt($databases_count_object.text());
$databases_count_object.text(++databases_count); $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 { else {
PMA_ajaxShowMessage(data.error); PMA_ajaxShowMessage(data.error);