Skip to content

Commit 9a51f58

Browse files
fix: Multi Select course/courserun issue (#4702)
1 parent ebdccae commit 9a51f58

File tree

1 file changed

+14
-1
lines changed
  • course_discovery/apps/course_metadata/templates/admin/course_metadata

1 file changed

+14
-1
lines changed

course_discovery/apps/course_metadata/templates/admin/course_metadata/course_run.html

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,19 @@
55
change-program-excluded-course-runs-form
66
{% endblock %}
77

8+
{% block extrastyle %}
9+
<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.13/css/select2.min.css" rel="stylesheet">
10+
{% endblock %}
11+
12+
{% block extrahead %}
13+
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.13/js/select2.min.js"></script>
14+
<script>
15+
document.addEventListener('DOMContentLoaded', function() {
16+
$('.select2').select2();
17+
});
18+
</script>
19+
{% endblock %}
20+
821
{% block content %}
922
<form class="form" method="post" action="">
1023
{% csrf_token %}
@@ -30,4 +43,4 @@
3043
</div>
3144
{% endblock %}
3245
</form>
33-
{% endblock %}
46+
{% endblock %}

0 commit comments

Comments
 (0)