fix double new calendar button - bugfix for oc 59

This commit is contained in:
Georg Ehrke 2012-01-19 12:27:16 +01:00
parent b44a7dc36a
commit ce13b3b7cd
1 changed files with 3 additions and 1 deletions

View File

@ -435,8 +435,10 @@ Calendar={
$(button).closest('tr').prev().html(data.page).show().next().remove(); $(button).closest('tr').prev().html(data.page).show().next().remove();
$('#calendar_holder').fullCalendar('removeEventSource', data.eventSource.url); $('#calendar_holder').fullCalendar('removeEventSource', data.eventSource.url);
$('#calendar_holder').fullCalendar('addEventSource', data.eventSource); $('#calendar_holder').fullCalendar('addEventSource', data.eventSource);
if (calendarid == 'new'){
$('#choosecalendar_dialog > table').append('<tr><td colspan="6"><a href="#" onclick="Calendar.UI.Calendar.newCalendar(this);"><input type="button" value="' + newcalendar + '"></a></td></tr>'); $('#choosecalendar_dialog > table').append('<tr><td colspan="6"><a href="#" onclick="Calendar.UI.Calendar.newCalendar(this);"><input type="button" value="' + newcalendar + '"></a></td></tr>');
} }
}
}, 'json'); }, 'json');
}, },
cancel:function(button, calendarid){ cancel:function(button, calendarid){