Merge remote-tracking branch 'origin/QA_4_5' into QA_4_5

This commit is contained in:
Weblate 2015-11-05 09:12:07 +01:00
commit 5abebfccd8
3 changed files with 11 additions and 2 deletions

View File

@ -20,6 +20,7 @@ phpMyAdmin - ChangeLog
- issue #11633 CodeMirror tooltip shows below modal window
- issue #11639 Bug with the MainBackground Color
- issue Profiling checkbox is missing
- issue #11642 Properly handle session expiry after POST requests
4.5.1.0 (2015-10-23)
- issue Invalid argument supplied for foreach()

View File

@ -490,7 +490,11 @@ var AJAX = {
AJAX.xhr = null;
if (parseInt(data.redirect_flag) == 1) {
// add one more GET param to display session expiry msg
window.location.href += '&session_expired=1';
if (window.location.href.indexOf('?') === -1) {
window.location.href += '?session_expired=1';
} else {
window.location.href += '&session_expired=1';
}
window.location.reload();
} else if (parseInt(data.reload_flag) == 1) {
// remove the token param and reload

View File

@ -78,7 +78,11 @@ function loadChildNodes(isNode, $expandElem, callback) {
callback(data);
}
} else if(data.redirect_flag == "1") {
window.location.href += '&session_expired=1';
if (window.location.href.indexOf('?') === -1) {
window.location.href += '?session_expired=1';
} else {
window.location.href += '&session_expired=1';
}
window.location.reload();
} else {
var $throbber = $expandElem.find('img.throbber');