Merge pull request #1369 from smita786/master

fix mousemove conflict:bug#4549
This commit is contained in:
Smita Kumari 2014-10-03 19:47:23 +05:30
commit 127a476be2

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