Fix setting of empty event properties in edit form (#260)

This commit is contained in:
Thomas 2011-08-03 23:17:06 +02:00
parent 1bf15306ef
commit cd0e45248b

View file

@ -361,9 +361,9 @@ function rcube_calendar_ui(settings)
$('#calendar-select')[(action == 'new' ? 'show' : 'hide')]();
// event details
var title = $('#edit-title').val(event.title);
var location = $('#edit-location').val(event.location);
var description = $('#edit-description').val(event.description);
var title = $('#edit-title').val(event.title || '');
var location = $('#edit-location').val(event.location || '');
var description = $('#edit-description').html(event.description || '');
var categories = $('#edit-categories').val(event.categories);
var calendars = $('#edit-calendar').val(event.calendar);
var freebusy = $('#edit-free-busy').val(event.free_busy);