2
jQuery.sessionTimeout = function (t) {
6
s = setTimeout(function () {
7
e.each(i.closeModals, function (t, n) {
8
e("#" + n).modal("hide");
10
document.title = i.titleMessage;
11
e("#sessionTimeout-dialog").modal("show");
24
o = setTimeout(function () {
25
window.location = i.redirUrl;
26
}, i.redirAfter - i.warnAfter);
35
title: "Your session is about to expire!",
36
message: "Your session is about to expire.",
37
titleMessage: "Warning: Time Out",
38
stayConnectedBtn: "Stay connected",
41
keepAliveUrl: "/keep-alive",
42
redirUrl: "/timed-out",
43
logoutUrl: "/log-out",
54
'<div class="modal fade" id="sessionTimeout-dialog">' +
55
'<div class="modal-dialog">' +
56
'<div class="modal-content">' +
57
'<div class="modal-header">' +
58
'<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>' +
59
'<h4 class="modal-title">' +
63
'<div class="modal-body">' +
66
'<div class="modal-footer">' +
67
'<div class="btn-group">' +
68
'<button id="sessionTimeout-dialog-logout" type="button" class="btn btn-danger">' +
71
'<button id="sessionTimeout-dialog-keepalive" type="button" class="btn btn-success" data-dismiss="modal">' +
80
e("#sessionTimeout-dialog-logout").on("click", function () {
81
window.location = i.logoutUrl;
83
e("#sessionTimeout-dialog").on("hide.bs.modal", function () {