mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-03-03 17:51:54 +01:00
Calendar: Make sure projectmanager integration (filter) refreshes actual data faster, fix events don't come back when turning integration (filter) off
This commit is contained in:
parent
a5f8b6076a
commit
55b4b28f29
@ -887,6 +887,29 @@ export class CalendarApp extends EgwApp
|
|||||||
// Clear any events from that app
|
// Clear any events from that app
|
||||||
this._clear_cache(app);
|
this._clear_cache(app);
|
||||||
}
|
}
|
||||||
|
if(action.id == "integration_projectmanager" &&
|
||||||
|
this.egw.preference("calendar_integration","projectmanager").indexOf("#") == 0)
|
||||||
|
{
|
||||||
|
if(!action.checked)
|
||||||
|
{
|
||||||
|
// Still need to re-fetch in this case, clearing won't bring the others back
|
||||||
|
callback = function()
|
||||||
|
{
|
||||||
|
this._fetch_data(this.state);
|
||||||
|
}.bind(this);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Clear all events, we're filtering real events now
|
||||||
|
callback = function()
|
||||||
|
{
|
||||||
|
this._clear_cache();
|
||||||
|
|
||||||
|
// Force redraw to current state
|
||||||
|
this.setState({state: this.state});
|
||||||
|
}.bind(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
if(typeof callback === "undefined")
|
if(typeof callback === "undefined")
|
||||||
{
|
{
|
||||||
callback = function() {};
|
callback = function() {};
|
||||||
|
Loading…
Reference in New Issue
Block a user