summaryrefslogtreecommitdiff
path: root/app/php/controls/scripts/CalendarLabel.js
blob: 8193e565695288b4bffbf301f2fb50b42609661e (plain)
1
2
3
4
5
6
7
8
9
10
11
$(document).on('Application.calendarGroupFilterChanged', function(event, args) {
    var selectedGroups = args.groups || [];
    $('.calendar').each(function() {
        var label = $(this);
        if (selectedGroups.indexOf(label.attr('data-group')) >= 0) {
            label.show();
        } else {
            label.hide();
        }
    });
});