diff --git a/staff/templates/staff/dashboard/tutor_pairing.html b/staff/templates/staff/dashboard/tutor_pairing.html index 26f2c462..a029150c 100644 --- a/staff/templates/staff/dashboard/tutor_pairing.html +++ b/staff/templates/staff/dashboard/tutor_pairing.html @@ -28,7 +28,7 @@

{% trans "Tutoren auf Kleingruppen verteilen" %}

// function to hide all groups which do not belong to the chosen group category function showSelectedGroups(e) { $(".tutor-select").parent().hide(); - var categoryCssClass = $("select[name=category] option:selected").text().toLowerCase().replace(' ', '-'); + var categoryCssClass = $("select[name=category] option:selected").text().toLowerCase().replace(/ /g, '-'); $("." + categoryCssClass).parent().show(); } // enable chosen for category field