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:
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