Solve Tokem mismatch error.

Signed-Off-By: Lakshay arora <arora.lakshya123@gmail.com>
This commit is contained in:
Lakshay arora 2018-05-10 00:04:36 +05:30
parent aae6ff4424
commit 3a52e20559
2 changed files with 12 additions and 6 deletions

View File

@ -360,7 +360,7 @@ var AJAX = {
if (typeof data.success !== 'undefined' && data.success) {
if(typeof data.user_changed !== 'undefined' && data.user_changed == 1) {
window.location.reload();
window.location = "index.php";
PMA_ajaxShowMessage("Loading...", false);
AJAX.active = false;
AJAX.xhr = null;
@ -382,9 +382,6 @@ var AJAX = {
}
AJAX.scriptHandler.reset(function () {
if (data._reloadNavigation) {
PMA_reloadNavigation();
}
if (data._title) {
$('title').replaceWith(data._title);
}
@ -505,6 +502,11 @@ var AJAX = {
$('html, body').animate({ scrollTop:$(document).height() }, 'slow');
}
}
if (data._reloadNavigation) {
PMA_reloadNavigation();
}
PMA_ajaxShowMessage(msg, false);
// bind for php error reporting forms (popup)
$('#pma_ignore_errors_popup').on('click', function () {

View File

@ -982,10 +982,14 @@ AJAX.registerOnload('functions.js', function () {
}
// window.location.reload(true);
if ($("#modalOverlay").length) {
$("#modalOverlay").replaceWith(data.error);
} else {
}
else {
$('body').append(data.error);
}
if($("#input_username").length) {
$("#input_username").focus();
}
_idleSecondsCounter = 0;
}
}