Skip to content

Commit

Permalink
Added placeholder for until recurrence rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian1998 committed May 3, 2018
1 parent 709f9b0 commit 92d6078
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/app/directives/datetimepickerDirective.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ app.directive('ocdatetimepicker', function($compile, $timeout) {
element.find('.events--date').datepicker('setDate', value.toDate());
element.find('.events--time').timepicker('setTime', value.toDate());
}
else if(value instanceof ICAL.Time) {
element.find('.events--date').datepicker('setDate', value.toJSDate());
element.find('.events--time').timepicker('setTime', value.toJSDate());
}
});
element.on('$destroy', function() {
element.find('.events--date').datepicker('destroy');
Expand Down

0 comments on commit 92d6078

Please sign in to comment.