We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c9e2b2 commit 2f4d409Copy full SHA for 2f4d409
tcf_website/static/reviews/new_review.js
@@ -69,7 +69,7 @@ jQuery(function ($) {
69
&page_size=${pageSize}&recent`;
70
$.getJSON(courseEndpoint, function (data) {
71
// Generate option tags
72
- $.each(data.results, function (i, course) {
+ $.each(data, function (i, course) {
73
$("<option />", {
74
val: course.id,
75
text: course.number + " | " + course.title,
@@ -105,7 +105,7 @@ jQuery(function ($) {
105
clearDropdown("#instructor"); // Empty dropdown
106
107
108
- $.each(data.results, function (i, instr) {
+ $.each(data, function (i, instr) {
109
110
val: instr.id,
111
text: instr.last_name + ", " + instr.first_name,
0 commit comments