From ce13b3b7cdfdfd4c6bef3bbace572c91372286ab Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Thu, 19 Jan 2012 12:27:16 +0100 Subject: [PATCH] fix double new calendar button - bugfix for oc 59 --- apps/calendar/js/calendar.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/calendar/js/calendar.js b/apps/calendar/js/calendar.js index 5c0998d4ae2..a4e08b56fa2 100644 --- a/apps/calendar/js/calendar.js +++ b/apps/calendar/js/calendar.js @@ -435,7 +435,9 @@ Calendar={ $(button).closest('tr').prev().html(data.page).show().next().remove(); $('#calendar_holder').fullCalendar('removeEventSource', data.eventSource.url); $('#calendar_holder').fullCalendar('addEventSource', data.eventSource); - $('#choosecalendar_dialog > table').append(''); + if (calendarid == 'new'){ + $('#choosecalendar_dialog > table').append(''); + } } }, 'json'); }, -- 2.39.5