Commit be58ae75 authored by Andrew Nicols's avatar Andrew Nicols
Browse files

MDL-69135 core_calendar: PendingJS for event filtering

parent 67753d62
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
...@@ -64,6 +64,7 @@ function( ...@@ -64,6 +64,7 @@ function(
// Toggle the hidden. We need to render the template before we change the value. // Toggle the hidden. We need to render the template before we change the value.
data.hidden = !data.hidden; data.hidden = !data.hidden;
M.util.js_pending("core_calendar/calendar_filter:toggleFilter");
return Str.get_string('eventtype' + data.eventtype, 'calendar') return Str.get_string('eventtype' + data.eventtype, 'calendar')
.then(function(nameStr) { .then(function(nameStr) {
data.name = nameStr; data.name = nameStr;
...@@ -81,6 +82,7 @@ function( ...@@ -81,6 +82,7 @@ function(
}) })
.then(function() { .then(function() {
fireFilterChangedEvent(data); fireFilterChangedEvent(data);
M.util.js_complete("core_calendar/calendar_filter:toggleFilter");
return; return;
}); });
}; };
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment