Do not refresh on tab change if autorefresh is off

This commit is contained in:
nathangray 2016-05-24 15:28:22 -06:00
parent 61a9a28c4d
commit 0357d2bf84

View File

@ -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() {