Redirect to the main page when logging out
This commit is contained in:
parent
6661eedacf
commit
58d8a30b5b
@ -175,7 +175,8 @@ define([
|
|||||||
if (!o && n) {
|
if (!o && n) {
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
} else if (o && !n) {
|
} else if (o && !n) {
|
||||||
window.location.reload();
|
//window.location.reload();
|
||||||
|
window.location.href = '/';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -439,7 +439,7 @@ define([
|
|||||||
|
|
||||||
$userAdmin.find('a.logout').click(function (e) {
|
$userAdmin.find('a.logout').click(function (e) {
|
||||||
Cryptpad.logout();
|
Cryptpad.logout();
|
||||||
window.location.reload();
|
window.location.href = '/';
|
||||||
});
|
});
|
||||||
$userAdmin.find('a.login').click(function (e) {
|
$userAdmin.find('a.login').click(function (e) {
|
||||||
window.open('/user');
|
window.open('/user');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user