Some other bug fixes
Signed-Off-By: Lakshay arora <arora.lakshya123@gmail.com>
This commit is contained in:
parent
3a52e20559
commit
568bc133cb
@ -366,9 +366,12 @@ var AJAX = {
|
||||
AJAX.xhr = null;
|
||||
return;
|
||||
} else if(typeof data.logged_in !== 'undefined' && data.logged_in == 1) {
|
||||
if($("#modalOverlay")) {
|
||||
if($("#modalOverlay").length) {
|
||||
$("#modalOverlay").remove();
|
||||
}
|
||||
if(typeof data.new_token !== 'undefined') {
|
||||
$("input[name=token]").val(data.new_token);
|
||||
}
|
||||
}
|
||||
|
||||
$('html, body').animate({ scrollTop: 0 }, 'fast');
|
||||
|
||||
@ -986,9 +986,9 @@ AJAX.registerOnload('functions.js', function () {
|
||||
}
|
||||
else {
|
||||
$('body').append(data.error);
|
||||
}
|
||||
if($("#input_username").length) {
|
||||
$("#input_username").focus();
|
||||
$(".ui-dialog").each(function(i) {
|
||||
$("#" + $(this).attr("aria-describedby")).dialog("close");
|
||||
});
|
||||
}
|
||||
_idleSecondsCounter = 0;
|
||||
}
|
||||
|
||||
@ -524,6 +524,10 @@ class AuthenticationCookie extends AuthenticationPlugin
|
||||
'success',
|
||||
1
|
||||
);
|
||||
$response->addJSON(
|
||||
'new_token',
|
||||
$_SESSION[' PMA_token ']
|
||||
);
|
||||
if($user_changed) {
|
||||
$response->addJSON(
|
||||
'user_changed',
|
||||
|
||||
@ -1879,6 +1879,7 @@ class Util
|
||||
. self::showDocu('faq', 'faqmissingparameters', true)
|
||||
. '[br]';
|
||||
$found_error = true;
|
||||
var_dump($GLOBALS);
|
||||
}
|
||||
}
|
||||
if ($found_error) {
|
||||
|
||||
@ -789,7 +789,7 @@ $cfg['LoginCookieRecall'] = true;
|
||||
*
|
||||
* @global integer $cfg['LoginCookieValidity']
|
||||
*/
|
||||
$cfg['LoginCookieValidity'] = 1440;
|
||||
$cfg['LoginCookieValidity'] = 10;
|
||||
|
||||
/**
|
||||
* how long login cookie should be stored (in seconds)
|
||||
|
||||
@ -621,15 +621,24 @@ body#loginform div.container {
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
div.container.overlay {
|
||||
div.container.modal_form {
|
||||
margin: 0 auto;
|
||||
width: 30em;
|
||||
text-align: center;
|
||||
position: fixed;
|
||||
top: 10%;
|
||||
left: 40%;
|
||||
background: #fff;
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
div#modalOverlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
background: #fff;
|
||||
z-index: 900;
|
||||
}
|
||||
|
||||
form.login label {
|
||||
float: <?php echo $left; ?>;
|
||||
width: 10em;
|
||||
|
||||
@ -909,6 +909,10 @@ div.container.modal_form {
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
#input_username {
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
div#modalOverlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user