We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24b37b5 commit c572b43Copy full SHA for c572b43
app/assets/javascripts/videos.js
@@ -0,0 +1,5 @@
1
+$(function() {
2
+ $('#check_all').on('change', function() {
3
+ $('input[name^=ids]').prop('checked', this.checked);
4
+ });
5
+});
app/views/videos/index.html.erb
@@ -15,7 +15,7 @@
15
<table class="table table-striped table-bordered table-hover">
16
<thead>
17
<tr>
18
- <th width="10"><%= check_box_tag 'check_all', :class => "checkbox" %></th>
+ <th width="10"><%= check_box_tag 'check_all' %></th>
19
<th>動画名</th>
20
<th>総数</th>
21
<th>解決</th>
@@ -39,4 +39,4 @@
39
</table>
40
</div>
41
<% end %>
42
- <%= paginate(@videos) %>
+<%= paginate(@videos) %>
0 commit comments