Merge pull request #1369 from smita786/master
fix mousemove conflict:bug#4549
This commit is contained in:
commit
127a476be2
@ -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