Sha256: c660f7c82497fe3559a03e85922f65a28e5f2a5bebde2380fc6193450c1966e4

Contents?: true

Size: 503 Bytes

Versions: 5

Compression:

Stored size: 503 Bytes

Contents

$('#students-checked').html('<%= j render(partial: "selected_student", collection: @selection, as: :student) %>');
<%= "#{@selection.size}" %> != 0 ? $('.chosen-count').html('<%= "#{@selection.size}" %>') : $('.chosen-count').html("");

var selection = JSON.parse(("<%=j @selection.to_json.html_safe %>"))

$('.chosen-count').html('<%= "(#{@count})" %>');
$(".student-check#student-" + '<%= @student.id %>').prop('checked', false)

// if(selection.length == 0) { $('#students-checked-div').slideUp(); }

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gaku_frontend-0.3.0 app/views/gaku/student_selection/remove.js.erb
gaku_frontend-0.3.0.pre.4 app/views/gaku/student_selection/remove.js.erb
gaku_frontend-0.3.0.pre.3 app/views/gaku/student_selection/remove.js.erb
gaku_frontend-0.3.0.pre.2 app/views/gaku/student_selection/remove.js.erb
gaku_frontend-0.3.0.pre.1 app/views/gaku/student_selection/remove.js.erb