From 2ee9898f2093bb67c6041eafa49fdfcac32221d3 Mon Sep 17 00:00:00 2001 From: Smita Kumari Date: Fri, 3 Oct 2014 19:35:17 +0530 Subject: [PATCH] fix mousemove conflict:bug#4549 Signed-off-by: Smita Kumari --- js/functions.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/functions.js b/js/functions.js index 47ba49b624..642783b23b 100644 --- a/js/functions.js +++ b/js/functions.js @@ -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; };