Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
integration
prechecker
Commits
5b93dc85
Commit
5b93dc85
authored
Oct 25, 2017
by
David Monllaó
Browse files
Merge branch 'MDL-60560-master' of
git://github.com/andrewnicols/moodle
parents
d12e4097
9eced505
Changes
2
Hide whitespace changes
Inline
Side-by-side
calendar/amd/build/modal_event_form.min.js
View file @
5b93dc85
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
calendar/amd/src/modal_event_form.js
View file @
5b93dc85
...
...
@@ -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
]);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment