2
0
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:
azammitdcarf
2011-01-25 03:44:41 +00:00
parent 1be24e7cc0
commit 07bef16e93
2 changed files with 17 additions and 0 deletions

View File

@@ -3570,6 +3570,7 @@ function getHeader()
$header.= ">\n\t<head>\n" $header.= ">\n\t<head>\n"
. $css_header . $css_header
. "\t\t<script type=\"text/javascript\" src=\"".$rooturl."/scripts/jquery/jquery.js\"></script>\n" . "\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; . $js_header;
return $header; return $header;

16
js/childnap.js Normal file
View 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();
});