mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Added child frame functions for AUTO_LOGOUT_MINUTES (otherwise movement in child frames such as questinonaire do not count as non-idle time)
This commit is contained in:
@@ -3570,6 +3570,7 @@ function getHeader()
|
||||
$header.= ">\n\t<head>\n"
|
||||
. $css_header
|
||||
. "\t\t<script type=\"text/javascript\" src=\"".$rooturl."/scripts/jquery/jquery.js\"></script>\n"
|
||||
. "\t\t<script type=\"text/javascript\" src=\"".$rooturl."/../../js/childnap.js\"></script>\n" //queXS Addition
|
||||
. $js_header;
|
||||
|
||||
return $header;
|
||||
|
||||
16
js/childnap.js
Normal file
16
js/childnap.js
Normal file
@@ -0,0 +1,16 @@
|
||||
//jQuery for child window where parent window has jquery-nap-1.0.0.js running
|
||||
//These functions add a listener to the child window and call the parent window when movement detected
|
||||
|
||||
$(window).mousemove(function() {
|
||||
parent.jQuery.fn.nap.interaction();
|
||||
});
|
||||
$(window).keyup(function() {
|
||||
parent.jQuery.fn.nap.interaction();
|
||||
});
|
||||
$(window).mousedown(function() {
|
||||
parent.jQuery.fn.nap.interaction();
|
||||
});
|
||||
|
||||
$(window).scroll(function() {
|
||||
parent.jQuery.fn.nap.interaction();
|
||||
});
|
||||
Reference in New Issue
Block a user