mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-25 14:41:50 +01:00
Fix (?) the tough bug where app tab is closed, and nextmatch autorefresh generates an error after "this.getInstanceManager() is null"
This commit is contained in:
parent
35f59acf41
commit
4c5e36500a
@ -205,6 +205,7 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput],
|
|||||||
}
|
}
|
||||||
// Unbind handler used for toggling autorefresh
|
// Unbind handler used for toggling autorefresh
|
||||||
$j(this.getInstanceManager().DOMContainer.parentNode).off('show.et2_nextmatch');
|
$j(this.getInstanceManager().DOMContainer.parentNode).off('show.et2_nextmatch');
|
||||||
|
$j(this.getInstanceManager().DOMContainer.parentNode).off('hide.et2_nextmatch');
|
||||||
|
|
||||||
// Free the grid components
|
// Free the grid components
|
||||||
this.dataview.free();
|
this.dataview.free();
|
||||||
@ -1390,7 +1391,7 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput],
|
|||||||
// (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() {
|
||||||
// Check in case it was stopped / destroyed since
|
// Check in case it was stopped / destroyed since
|
||||||
if(!this._autorefresh_timer) return;
|
if(!this._autorefresh_timer || !this.getInstanceManager()) return;
|
||||||
|
|
||||||
$j(this.getInstanceManager().DOMContainer.parentNode).one('show.et2_nextmatch',
|
$j(this.getInstanceManager().DOMContainer.parentNode).one('show.et2_nextmatch',
|
||||||
// Important to use anonymous function instead of just 'this.refresh' because
|
// Important to use anonymous function instead of just 'this.refresh' because
|
||||||
|
Loading…
Reference in New Issue
Block a user