Do not redirect to home page when logging out from another tab
This commit is contained in:
@@ -176,7 +176,18 @@ define([
|
||||
window.location.reload();
|
||||
} else if (o && !n) {
|
||||
//window.location.reload();
|
||||
window.location.href = '/';
|
||||
//window.location.href = '/';
|
||||
$(window).on('keyup', function (e) {
|
||||
if (e.keyCode === 27) {
|
||||
Cryptpad.removeLoadingScreen();
|
||||
}
|
||||
});
|
||||
Cryptpad.logout();
|
||||
Cryptpad.addLoadingScreen();
|
||||
Cryptpad.errorLoadingScreen(Messages.onLogout, true);
|
||||
if (exp.info) {
|
||||
exp.info.network.disconnect();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@ define(function () {
|
||||
|
||||
out.websocketError = 'Impossible de se connecter au serveur WebSocket...';
|
||||
out.typeError = "Ce document temps-réel n'est pas compatible avec l'application sélectionnée";
|
||||
out.onLogout = 'Vous êtes déconnecté de votre compte utilisateur, <a href="/" target="_blank">cliquez ici</a> pour vous authentifier<br>ou appuyez sur <em>Échap</em> pour accéder au document en mode lecture seule.';
|
||||
|
||||
out.loading = "Chargement...";
|
||||
out.error = "Erreur";
|
||||
|
||||
@@ -29,6 +29,7 @@ define(function () {
|
||||
|
||||
out.websocketError = 'Unable to connect to the websocket server...';
|
||||
out.typeError = "That realtime document is not compatible with the selected application";
|
||||
out.onLogout = 'You are logged out, <a href="/" target="_blank">click here</a> to log in<br>or press <em>Escape</em> to access your pad in read-only mode.';
|
||||
|
||||
out.loading = "Loading...";
|
||||
out.error = "Error";
|
||||
|
||||
Reference in New Issue
Block a user