Browse Source

Reset category and reminder values when showing the create modal

merge-requests/1/head
Mike Koch 6 years ago
parent
commit
80687f3bed
  1. 5
      js/calendar/mods-for-hesk-calendar.js

5
js/calendar/mods-for-hesk-calendar.js

@ -358,7 +358,10 @@ function displayCreateModal(date, viewName) {
var $form = $('#create-form');
$form.find('input[name="name"]').val('').end()
.find('input[name="location"]').val('').end()
.find('textarea[name="comments"]').val('').end();
.find('textarea[name="comments"]').val('').end()
.find('select[name="category"]').val('').end()
.find('select[name="reminder-unit"]').val(0).end()
.find('input[name="reminder-value"]').val('').end();
var $modal = $('#create-event-modal');
var formattedDate = date.format('YYYY-MM-DD');

Loading…
Cancel
Save