Revision 8e5122dd
b/ui/static/synnefo.js | ||
---|---|---|
1661 | 1661 |
// logout |
1662 | 1662 |
function user_session_logout() { |
1663 | 1663 |
$.cookie("X-Auth-Token", null); |
1664 |
location.reload(); |
|
1664 |
if (window.LOGOUT_REDIRECT !== undefined) |
|
1665 |
{ |
|
1666 |
window.location = window.LOGOUT_REDIRECT; |
|
1667 |
} else { |
|
1668 |
window.location.reload(); |
|
1669 |
} |
|
1665 | 1670 |
} |
1666 | 1671 |
|
1667 | 1672 |
// action indicators |
b/ui/templates/home.html | ||
---|---|---|
64 | 64 |
// timeout value from settings.py |
65 | 65 |
var TIMEOUT = {{timeout}}; |
66 | 66 |
var UPDATE_INTERVAL = {{update_interval}}; |
67 |
var LOGOUT_REDIRECT = undefined; |
|
67 | 68 |
|
68 | 69 |
// server statuses and transitions |
69 | 70 |
var STATUSES = { |
Also available in: Unified diff