From 0357d2bf84fc25ade99e684feaf0ccfd1b0bdcde Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 24 May 2016 15:28:22 -0600 Subject: [PATCH] Do not refresh on tab change if autorefresh is off --- calendar/js/app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/calendar/js/app.js b/calendar/js/app.js index 357c44f020..8004a44dbe 100644 --- a/calendar/js/app.js +++ b/calendar/js/app.js @@ -3493,6 +3493,8 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend( window.clearInterval(this._autorefresh_timer); $j(e.target).off(e); + if(!time) return; + // If the autorefresh time is up, bind once to trigger a refresh // (if needed) when tab is activated again this._autorefresh_timer = setTimeout(jQuery.proxy(function() {