From 8339db86d2472c302f5810bc0b523c7a4081186e Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 19 Oct 2015 23:08:16 +0000 Subject: [PATCH] Fix app header tending to show previous value for owner when calendar tab is first opened --- calendar/js/app.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/calendar/js/app.js b/calendar/js/app.js index bc0c84b16e..6ab75ce0de 100644 --- a/calendar/js/app.js +++ b/calendar/js/app.js @@ -1655,10 +1655,6 @@ app.classes.calendar = AppJS.extend( } this.state = jQuery.extend({},state.state); - var formatDate = new Date(this.state.date); - formatDate = new Date(formatDate.valueOf() + formatDate.getTimezoneOffset() * 60 * 1000); - egw_app_header(view.header(state.state),'calendar'); - // List view (nextmatch) has slightly different fields if(state.state.view === 'listview') { @@ -1735,6 +1731,9 @@ app.classes.calendar = AppJS.extend( // If current state matches a favorite, hightlight it this.highlight_favorite(); + // Update app header + egw_app_header(view.header(state.state),'calendar'); + // Sidebox is updated, we can clear the flag this.state_update_in_progress = false;