Merge pull request #12462 from devenbansod/fix_12384

Reload Navigation if no previous entry stored
This commit is contained in:
Michal Čihař 2016-08-17 11:16:25 +02:00 committed by GitHub
commit cff9e555ae

View File

@ -552,12 +552,15 @@ $(function () {
if ($('#pma_navigation_tree_content').length &&
typeof storage.navTreePaths === 'undefined'
) {
navTreeStateUpdate();
PMA_reloadNavigation();
} else if (PMA_commonParams.get('server') === storage.server &&
PMA_commonParams.get('token') === storage.token
) {
// Reload the tree to the state before page refresh
PMA_reloadNavigation(null, JSON.parse(storage.navTreePaths));
} else {
// If the user is different
navTreeStateUpdate();
}
}
});