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,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('<tr><td colspan="6"><a href="#" onclick="Calendar.UI.Calendar.newCalendar(this);"><input type="button" value="' + newcalendar + '"></a></td></tr>');
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>');
}
}
}, 'json');
},