Commit 58b4bae0 authored by Curtis Adam's avatar Curtis Adam

Update the click event for the label filters

parent 67741e50
......@@ -59,31 +59,31 @@ Session.set('moduleActive', true);
*/
Template.filterIndex.events({
'click .label-wordcloud': function () {
'click .resultItemHeaderBottomAreaLabels .label-wordcloud': function () {
Filter.setActiveFilter(true, "wordcloud");
FilterNavigation.showDropdown();
},
'click .label-lecturer-authorized': function () {
'click .resultItemHeaderBottomAreaLabels .label-lecturer-authorized': function () {
Filter.setActiveFilter(true, "lecturerAuthorized");
FilterNavigation.showDropdown();
},
'click .label-kind': function (event) {
'click .resultItemHeaderBottomAreaLabels .label-kind': function (event) {
Filter.setActiveFilter([$(event.target).data('id')], "kind");
FilterNavigation.showDropdown();
},
'click .label-card-type': function (event) {
'click .resultItemHeaderBottomAreaLabels .label-card-type': function (event) {
Filter.setActiveFilter(Number($(event.target).data('id')), "cardType");
FilterNavigation.showDropdown();
},
'click .label-difficulty': function (event) {
'click .resultItemHeaderBottomAreaLabels .label-difficulty': function (event) {
Filter.setActiveFilter(Number($(event.target).data('id')), "difficulty");
FilterNavigation.showDropdown();
},
'click .label-bonus': function () {
'click .resultItemHeaderBottomAreaLabels .label-bonus': function () {
Filter.setActiveFilter(true, "bonusActive");
FilterNavigation.showDropdown();
},
'click .label-transcript-bonus': function () {
'click .resultItemHeaderBottomAreaLabels .label-transcript-bonus': function () {
Filter.setActiveFilter(true, "transcriptBonus");
FilterNavigation.showDropdown();
}
......
Markdown is supported
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