mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
Do not refresh on tab change if autorefresh is off
This commit is contained in:
parent
61a9a28c4d
commit
0357d2bf84
@ -3493,6 +3493,8 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend(
|
|||||||
window.clearInterval(this._autorefresh_timer);
|
window.clearInterval(this._autorefresh_timer);
|
||||||
$j(e.target).off(e);
|
$j(e.target).off(e);
|
||||||
|
|
||||||
|
if(!time) return;
|
||||||
|
|
||||||
// If the autorefresh time is up, bind once to trigger a refresh
|
// If the autorefresh time is up, bind once to trigger a refresh
|
||||||
// (if needed) when tab is activated again
|
// (if needed) when tab is activated again
|
||||||
this._autorefresh_timer = setTimeout(jQuery.proxy(function() {
|
this._autorefresh_timer = setTimeout(jQuery.proxy(function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user