Skip to content

Commit

Permalink
Update_comments.html.erb (#11038)
Browse files Browse the repository at this point in the history
* Update_comments.html.erb

Remove Duplicate Code in Spam2

* Update_comments.html.erb

Remove Duplicate Code in Spam2
  • Loading branch information
falyne authored Apr 12, 2022
1 parent f925182 commit 059e153
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/views/spam2/_comments.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
$(document).ready(function () {
var table = table_main("#comment_table");
$("#all").click(function () { //select all button
$('.selectedId').prop('checked', !$('.selectedId').prop('checked'));
var check = ($('.selectedId').filter(":checked").length == $('.selectedId').length);
$('#select-count').text($('.selectedId').filter(":checked").length);
$('#selectall').prop("checked", check);
disable_buttons('#selectall');
select_all();
});
var pageselect_val = localStorage.getItem('page-select') || '';
$("#pageselect").val(pageselect_val);
Expand Down

0 comments on commit 059e153

Please sign in to comment.