Adjust navigation only when there is database/table change, bug#4129

This commit is contained in:
Atul Pratap Singh 2013-10-14 15:28:54 +05:30
parent 4fb5088f86
commit 8640de951c
2 changed files with 7 additions and 6 deletions

View File

@ -7,6 +7,7 @@ phpMyAdmin - ChangeLog
- bug #3995 Drizzle server charset notice
- bug #3911 Filtering database names includes empty groupings
- bug #3678 Does not display or manipulate bit(64) fields appropriately
- bug #4129 Unneeded navi panel refresh
4.0.8.0 (2013-10-06)
- bug #3988 Rename view is not working

View File

@ -41,9 +41,9 @@ var PMA_commonParams = (function () {
for (var i in obj) {
if (params[i] !== undefined && params[i] !== obj[i]) {
reload = true;
}
if (i == 'db' || i == 'table') {
updateNavigation = true;
if (i == 'db' || i == 'table') {
updateNavigation = true;
}
}
params[i] = obj[i];
}
@ -76,11 +76,11 @@ var PMA_commonParams = (function () {
set: function (name, value) {
if (params[name] !== undefined && params[name] !== value) {
PMA_querywindow.refresh();
if (name == 'db' || name == 'table') {
PMA_showCurrentNavigation();
}
}
params[name] = value;
if (name == 'db' || name == 'table') {
PMA_showCurrentNavigation();
}
return this;
},
/**