fix mousemove conflict:bug#4549
Signed-off-by: Smita Kumari <kumarismita62@gmail.com>
This commit is contained in:
parent
3eda46b33e
commit
2ee9898f20
@ -686,15 +686,16 @@ var updateInterval;
|
||||
AJAX.registerTeardown('functions.js', function () {
|
||||
clearInterval(updateInterval);
|
||||
clearInterval(IncInterval);
|
||||
$(document).off('mousemove');
|
||||
});
|
||||
|
||||
AJAX.registerOnload('functions.js', function () {
|
||||
document.onclick = function() {
|
||||
_idleSecondsCounter = 0;
|
||||
};
|
||||
document.onmousemove = function() {
|
||||
$(document).on('mousemove',function() {
|
||||
_idleSecondsCounter = 0;
|
||||
};
|
||||
});
|
||||
document.onkeypress = function() {
|
||||
_idleSecondsCounter = 0;
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user