diff --git a/app/views/spam2/_comments.html.erb b/app/views/spam2/_comments.html.erb index 2249d5434f..790e024ce2 100644 --- a/app/views/spam2/_comments.html.erb +++ b/app/views/spam2/_comments.html.erb @@ -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);