|
|
|
@ -7,7 +7,8 @@ $("#all_students_list").empty();
|
|
|
|
|
link += "</li>";
|
|
|
|
|
$("#all_students_list").append(link);
|
|
|
|
|
|
|
|
|
|
var str = "";
|
|
|
|
|
var str = $("#group_member_ids").val();
|
|
|
|
|
/*var str = "";
|
|
|
|
|
var lists = $("#choose_students_list li");
|
|
|
|
|
if(lists.length > 0) {
|
|
|
|
|
for(var i=0; i<lists.length; i++) {
|
|
|
|
@ -17,7 +18,7 @@ $("#all_students_list").empty();
|
|
|
|
|
str += ",";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}*/
|
|
|
|
|
<% if user.id.to_i != User.current.id.to_i && (@commit_student_ids.find{|e| e.to_i == user.id.to_i}).nil? && user.member_of_course?(@course) %>
|
|
|
|
|
if (str.indexOf(<%=user.id.to_s %>) < 0) {
|
|
|
|
|
$("#student_<%=user.id %>").one("click",function choose_student() {
|
|
|
|
|