From 3373d16c715da84a4a3e1b4e3b597cedf648c974 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 24 Nov 2015 16:17:00 +0000 Subject: [PATCH] Do not include date in state, don't want favorites to be stuck in time. --- calendar/js/app.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/calendar/js/app.js b/calendar/js/app.js index b80a379c25..e9d2498bbf 100644 --- a/calendar/js/app.js +++ b/calendar/js/app.js @@ -1580,12 +1580,6 @@ app.classes.calendar = AppJS.extend( state = state ? JSON.parse(state) : {}; } - // Make sure date is consitantly a string, in case it needs to be passed to server - if(state.date && state.date.toJSON) - { - state.date = state.date.toJSON(); - } - // Don't store current user in state to allow admins to create favourites for all // Should make no difference for normal users. if(state.owner == egw.user('account_id')) @@ -1594,7 +1588,8 @@ app.classes.calendar = AppJS.extend( // it will work for other users too. state.owner = 0; } - // Don't store first and last + // Don't store date or first and last + delete state.date; delete state.first; delete state.last;