Permalink
Browse files

bug #4108 Missing refresh by deleting databases

  • Loading branch information...
1 parent 0d2a914 commit 98aeddc71e5850d6d4bd99369c331ffa86fc7452 @lem9 lem9 committed Oct 5, 2013
Showing with 5 additions and 0 deletions.
  1. +1 −0 ChangeLog
  2. +4 −0 js/server_databases.js
View
@@ -3,6 +3,7 @@ phpMyAdmin - ChangeLog
4.0.9.0 (not yet released)
- bug #4104 Can't edit updatable view when searching
+- bug #4108 Missing refresh by deleting databases
4.0.8.0 (not yet released)
- bug #3988 Rename view is not working
View
@@ -76,6 +76,10 @@ AJAX.registerOnload('server_databases.js', function() {
$rowsToRemove.remove();
$form.find('tbody').PMA_sort_table('.name');
+ if ($form.find('tbody').find('tr').length == 0) {
+ // user just dropped the last db on this page
+ PMA_commonActions.refreshMain();
+ }
PMA_reloadNavigation();
} else {
$form.find('tr.removeMe').removeClass('removeMe');

0 comments on commit 98aeddc

Please sign in to comment.