You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pgfqe6ch8/app/views/subjects/destroy.js.erb

5 lines
335 B

6 years ago
for(var i=0; i<$("#subject_shixun_<%= @subject.id %>").nextAll().length; i++){
var index = parseInt($($("#subject_shixun_<%= @subject.id %>").nextAll()[i]).children(":first").html());
$($("#subject_shixun_<%= @subject.id %>").nextAll()[i]).children(":first").html(index - 1);
}
$("#subject_shixun_<%= @subject.id %>").remove();