Sha256: 25be8c5b265721aeb01c12e2ce64d22614e7c5c6df065729ea62f56f85f538b5

Contents?: true

Size: 715 Bytes

Versions: 4

Compression:

Stored size: 715 Bytes

Contents

$("#class-group-students-index tbody").html('');

<% @resource.enrollments.each do |enrollment| %>
  $('#class-group-students-index tbody').append('<%= render_js_partial("gaku/class_groups/students/student", {enrollment: enrollment}) %>');
<% end %>

$('#class-group-enrollments-tab-link').html('<%= print_count(@count, t_student_plural) %>');
$('.class-group-enrollments-count').html('<%= print_count(@count, t_student_list) %>');

$('#student-modal').modal('hide');
showNotice("<%= render_flash %>");

var enrollments = <%= raw @enrollments.map {|e| [e.student_id, e.class_and_number ]}.to_json %>
enrollments.forEach(function(enrollment) {
  $('#student-' + enrollment[0] + ' td:eq(5)' ).html(enrollment[1])
})

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
gaku_core-0.0.3 app/views/gaku/class_groups/students/enroll_students.js.erb
gaku-0.0.3 core/app/views/gaku/class_groups/students/enroll_students.js.erb
gaku-0.0.2 core/app/views/gaku/class_groups/students/enroll_students.js.erb
gaku_core-0.0.2 app/views/gaku/class_groups/students/enroll_students.js.erb