Permalink
Browse files

Merge branch 'MDL-60560-master' of git://github.com/andrewnicols/moodle

  • Loading branch information...
dmonllao committed Oct 25, 2017
2 parents d12e409 + 9eced50 commit 5b93dc85390287535a2e89c2231569e2aa0b853e
Showing with 7 additions and 4 deletions.
  1. +1 −1 calendar/amd/build/modal_event_form.min.js
  2. +6 −3 calendar/amd/src/modal_event_form.js

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -423,12 +423,15 @@ define([
this.reloadBodyContent(formData);
return;
} else {
// Check whether this was a new event or not.
// The hide function unsets the form data so grab this before the hide.
var isExisting = this.hasEventId();
// No problemo! Our work here is done.
this.hide();
// Trigger the appropriate calendar event so that the view can
// be updated.
if (this.hasEventId()) {
// Trigger the appropriate calendar event so that the view can be updated.
if (isExisting) {
$('body').trigger(CalendarEvents.updated, [response.event]);
} else {
$('body').trigger(CalendarEvents.created, [response.event]);

0 comments on commit 5b93dc8

Please sign in to comment.