mirror of https://github.com/zulip/zulip.git
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:
parent
8173bd720b
commit
807303a325
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue