2691 |
24 Sep 14 |
nicklas |
1 |
|
2691 |
24 Sep 14 |
nicklas |
var KeepAlive = function() |
2691 |
24 Sep 14 |
nicklas |
3 |
{ |
2691 |
24 Sep 14 |
nicklas |
var keepalive = {}; |
2691 |
24 Sep 14 |
nicklas |
5 |
|
2691 |
24 Sep 14 |
nicklas |
keepalive.initPage = function() |
2691 |
24 Sep 14 |
nicklas |
7 |
{ |
2691 |
24 Sep 14 |
nicklas |
// Dispatch an event to the 'timeoutMessage' <div> asking it to restore navigation buttons |
2691 |
24 Sep 14 |
nicklas |
var timeoutMessage = window.opener.document.getElementById('timeoutMessage'); |
2691 |
24 Sep 14 |
nicklas |
var customEvent = timeoutMessage.ownerDocument.createEvent('CustomEvent'); |
2691 |
24 Sep 14 |
nicklas |
customEvent.initCustomEvent('logged-in', true, true, {}); |
2691 |
24 Sep 14 |
nicklas |
timeoutMessage.dispatchEvent(customEvent); |
2691 |
24 Sep 14 |
nicklas |
// Close this window |
2691 |
24 Sep 14 |
nicklas |
window.close(); |
2691 |
24 Sep 14 |
nicklas |
15 |
} |
2691 |
24 Sep 14 |
nicklas |
16 |
|
2691 |
24 Sep 14 |
nicklas |
return keepalive; |
2691 |
24 Sep 14 |
nicklas |
18 |
}(); |
2691 |
24 Sep 14 |
nicklas |
19 |
|
2691 |
24 Sep 14 |
nicklas |
Doc.onLoad(KeepAlive.initPage); |
2691 |
24 Sep 14 |
nicklas |
21 |
|