Minor - fix from 1.11.x

pull/2650/head
Julio Montoya 7 years ago
parent 70f80d0769
commit 9333d842c2
  1. 7
      plugin/learning_calendar/view/calendar.tpl

@ -6,11 +6,14 @@
url: "{{ ajax_url }}&a=get_events", url: "{{ ajax_url }}&a=get_events",
success: function(response) { success: function(response) {
for (var i = 0; i < response.length; i++) { for (var i = 0; i < response.length; i++) {
var startDate = moment(response[i].start_date + " 13:00:00").toDate();
var endDate = moment(response[i].end_date + " 13:00:00").toDate();
myData.push({ myData.push({
id: response[i].id, id: response[i].id,
title: response[i].title, title: response[i].title,
startDate: new Date(response[i].start_date), startDate: startDate,
endDate: new Date(response[i].end_date), endDate: endDate,
color: response[i].color color: response[i].color
}); });
} }

Loading…
Cancel
Save