Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Merge branch 'MDL-60374-master' of git://github.com/andrewnicols/moodle
- Loading branch information
Showing
with
20 additions
and
4 deletions.
-
+20
−4
calendar/templates/month_detailed.mustache
|
@@ -157,10 +157,26 @@ require([ |
|
|
M.util.js_pending("month-detailed-{{uniqid}}-filterChanged"); |
|
|
// A filter value has been changed. |
|
|
// Find all matching cells in the popover data, and hide them. |
|
|
$("#month-detailed-{{uniqid}}") |
|
|
.find(CalendarSelectors.eventType[data.type]) |
|
|
.toggleClass('hidden', !!data.hidden); |
|
|
M.util.js_complete("month-detailed-{{uniqid}}-filterChanged"); |
|
|
var target = $("#month-detailed-{{uniqid}}").find(CalendarSelectors.eventType[data.type]); |
|
|
|
|
|
var transitionPromise = $.Deferred(); |
|
|
if (data.hidden) { |
|
|
transitionPromise.then(function() { |
|
|
return target.slideUp('fast').promise(); |
|
|
}); |
|
|
} else { |
|
|
transitionPromise.then(function() { |
|
|
return target.slideDown('fast').promise(); |
|
|
}); |
|
|
} |
|
|
|
|
|
transitionPromise.then(function() { |
|
|
M.util.js_complete("month-detailed-{{uniqid}}-filterChanged"); |
|
|
|
|
|
return; |
|
|
}); |
|
|
|
|
|
transitionPromise.resolve(); |
|
|
}); |
|
|
}); |
|
|
{{/js}} |