Stop calendar activating when an infolog is added, while still allowing a refresh

This commit is contained in:
Nathan Gray 2016-03-15 16:51:10 +00:00
parent d20873b881
commit e76fa3aa16

View File

@ -1641,6 +1641,13 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend(
}
if(changed.length && !this.state_update_in_progress)
{
// This activates calendar app if you call setState from a different app
// such as home. If we change state while not active, sizing is wrong.
if(framework && framework.applications.calendar && framework.applications.calendar.hasSideboxMenuContent)
{
framework.setActiveApp(framework.applications.calendar);
}
console.log('Calendar state changed',changed.join("\n"));
// Log
this.egw.debug('navigation','Calendar state changed', changed.join("\n"));
@ -1708,11 +1715,6 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend(
*/
setState: function setState(state)
{
if(framework && framework.applications.calendar && framework.applications.calendar.hasSideboxMenuContent)
{
framework.setActiveApp(framework.applications.calendar);
}
// State should be an object, not a string, but we'll parse
if(typeof state == "string")
{