From 2e1365d37bddf787c7089126c1a5ff1c623ab0e2 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Wed, 20 Mar 2024 10:49:38 -0400 Subject: Added mass pending comment deletion/markspamming --- app/assets/javascripts/admin/dashboard.coffee | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/assets/javascripts') diff --git a/app/assets/javascripts/admin/dashboard.coffee b/app/assets/javascripts/admin/dashboard.coffee index 4fa6cd8..bc48315 100644 --- a/app/assets/javascripts/admin/dashboard.coffee +++ b/app/assets/javascripts/admin/dashboard.coffee @@ -3,6 +3,8 @@ # You can use CoffeeScript in this file: http://coffeescript.org/ dash_ready = -> $(".datepicker").datepicker({"dateFormat": "yy-mm-dd"}) + $("#check_all").change -> + $(".comment_ids").prop("checked", $(this).prop("checked")) $(document).ready(dash_ready) $(document).on('turbolinks:load', dash_ready) -- cgit 1.4.1