Skip to content

Commit

Permalink
Learning calendar - Fix IE issue when updating calendar see BT#14608
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Jul 24, 2018
1 parent 3f1c90b commit 5bdc33e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion plugin/learning_calendar/ajax.php
Expand Up @@ -17,7 +17,7 @@
exit;
}
$endDate = isset($_REQUEST['end_date']) ? $_REQUEST['end_date'] : '';
if (empty($endDate)) {
if ($startDate == $endDate) {
// One day
$plugin->toogleDayType($calendarId, $startDate);
} else {
Expand Down
20 changes: 10 additions & 10 deletions plugin/learning_calendar/view/calendar.tpl
Expand Up @@ -37,16 +37,16 @@
customDayRenderer: function(e) {
$(e).parent().css('background-color', 'green');
},
clickDay: function(e) {
var dateString = moment(e.date).format("YYYY-MM-DD");
$.ajax({
type: "GET",
url: "{{ ajax_url }}&a=toggle_day&start_date="+dateString+"&end_date=",
success: function(returnValue) {
getEvents(e);
}
});
},
{#clickDay: function(e) {#}
{#var dateString = moment(e.date).format("YYYY-MM-DD");#}
{#$.ajax({#}
{#type: "GET",#}
{#url: "{{ ajax_url }}&a=toggle_day&start_date="+dateString+"&end_date=",#}
{#success: function(returnValue) {#}
{#getEvents(e);#}
{#}#}
{#});#}
{#},#}
selectRange: function(e) {
var startString = moment(e.startDate).format("YYYY-MM-DD");
var endString = moment(e.endDate).format("YYYY-MM-DD");
Expand Down

0 comments on commit 5bdc33e

Please sign in to comment.