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
moodle
moodle
Commits
be58ae75
Commit
be58ae75
authored
Jun 24, 2020
by
Andrew Nicols
Browse files
MDL-69135 core_calendar: PendingJS for event filtering
parent
67753d62
Changes
2
Hide whitespace changes
Inline
Side-by-side
calendar/amd/build/calendar_filter.min.js
View file @
be58ae75
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
calendar/amd/src/calendar_filter.js
View file @
be58ae75
...
...
@@ -64,6 +64,7 @@ function(
// Toggle the hidden. We need to render the template before we change the value.
data
.
hidden
=
!
data
.
hidden
;
M
.
util
.
js_pending
(
"
core_calendar/calendar_filter:toggleFilter
"
);
return
Str
.
get_string
(
'
eventtype
'
+
data
.
eventtype
,
'
calendar
'
)
.
then
(
function
(
nameStr
)
{
data
.
name
=
nameStr
;
...
...
@@ -81,6 +82,7 @@ function(
})
.
then
(
function
()
{
fireFilterChangedEvent
(
data
);
M
.
util
.
js_complete
(
"
core_calendar/calendar_filter:toggleFilter
"
);
return
;
});
};
...
...
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