mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
* now login and logout are do with page reload
This commit is contained in:
parent
30c04f33e7
commit
5e0c57401d
1 changed files with 2 additions and 2 deletions
|
|
@ -1990,7 +1990,7 @@ function doAuth(form)
|
|||
if(json.logged)
|
||||
{
|
||||
flag.isLogged = true;
|
||||
_mtt.loadLists(1);
|
||||
window.location.reload();
|
||||
}
|
||||
else {
|
||||
flashError(_mtt.lang.get('invalidpass'));
|
||||
|
|
@ -2004,7 +2004,7 @@ function logout()
|
|||
{
|
||||
$.post(mytinytodo.mttUrl+'ajax.php?logout', { logout:1 }, function(json){
|
||||
flag.isLogged = false;
|
||||
_mtt.loadLists(1);
|
||||
window.location.reload();
|
||||
}, 'json');
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue