mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 09:27:43 +00:00
jquery.idle: don't allow the active handler to fire as a result of the user going idle
(imported from commit 28793228e50449b096dfe999a8cd17b7fa9e347e)
This commit is contained in:
@@ -68,6 +68,7 @@
|
|||||||
var createTimeout = function() {
|
var createTimeout = function() {
|
||||||
timerId = setTimeout(function(){
|
timerId = setTimeout(function(){
|
||||||
idle = true;
|
idle = true;
|
||||||
|
cancel();
|
||||||
settings.onIdle.call();
|
settings.onIdle.call();
|
||||||
if(settings.keepTracking){
|
if(settings.keepTracking){
|
||||||
timerId = createTimeout(settings);
|
timerId = createTimeout(settings);
|
||||||
|
|||||||
Reference in New Issue
Block a user