Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
Fixed tutor pairing
Browse files Browse the repository at this point in the history
Previously, relevant groups did not show up if the group name contains more than one blank space
  • Loading branch information
bhaettasch committed Oct 2, 2017
1 parent 1a1843d commit 9e4e899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion staff/templates/staff/dashboard/tutor_pairing.html
Expand Up @@ -28,7 +28,7 @@ <h3>{% trans "Tutoren auf Kleingruppen verteilen" %}</h3>
// 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
Expand Down

0 comments on commit 9e4e899

Please sign in to comment.