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