fix mousemove conflict:bug#4549

Signed-off-by: Smita Kumari <kumarismita62@gmail.com>
This commit is contained in:
Smita Kumari 2014-10-03 19:35:17 +05:30
parent 3eda46b33e
commit 2ee9898f20

View File

@ -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;
};