diff --git a/esp/public/media/scripts/program/modules/teacherclassregmodule.js b/esp/public/media/scripts/program/modules/teacherclassregmodule.js index e7de818f23..4ce4b4848d 100755 --- a/esp/public/media/scripts/program/modules/teacherclassregmodule.js +++ b/esp/public/media/scripts/program/modules/teacherclassregmodule.js @@ -42,7 +42,7 @@ function setup_autocomplete() } }); - $j("#moderator_name").autocomplete({ + $j("[name=moderator_name]").autocomplete({ source: function(request, response) { $j.ajax({ url: "/teach/"+base_url+"/moderatorlookup/", @@ -61,7 +61,7 @@ function setup_autocomplete() }); }, select: function(event, ui) { - $j("#moderator_id").val(ui.item.id); + $j("#moderator_id_" + $j(this).data("secid")).val(ui.item.id); } }); } diff --git a/esp/templates/program/modules/adminclass/coteachers.html b/esp/templates/program/modules/adminclass/coteachers.html index 47745891ca..f48ceef473 100644 --- a/esp/templates/program/modules/adminclass/coteachers.html +++ b/esp/templates/program/modules/adminclass/coteachers.html @@ -71,7 +71,7 @@

Setting Teachers for "{{ class|escape }}"

-
+ @@ -113,7 +113,7 @@

Setting Teachers for "{{ class|escape }}"

-
Add a coteacher
-
+ @@ -146,8 +146,8 @@

Setting Teachers for "{{ class|escape }}"

- - + +
Add a {{ program.getModeratorTitle|lower }}