From e549fdbfe63e60335c2988b027c130467220dc28 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Mon, 7 Mar 2022 21:37:15 +0000 Subject: [PATCH] dismiss the mass-action button after performing the action --- public/javascripts/lsl.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/javascripts/lsl.js b/public/javascripts/lsl.js index bb9778e..ca3cc7a 100644 --- a/public/javascripts/lsl.js +++ b/public/javascripts/lsl.js @@ -500,10 +500,12 @@ $(function(){ $(window).on('resize', () => { reposition_item_multi_action(); }); $('#btn-check-all').click((ev) => { $('#list-items input[type="checkbox"]').not(':checked').prop('checked', true).trigger('change'); + $('#item-multi-action').removeClass('in-view'); return false; }); $('#btn-clear-all').click((ev) => { $('#list-items input[type="checkbox"]').filter(':checked').prop('checked', false).trigger('change'); + $('#item-multi-action').removeClass('in-view'); return false; }); }); -- 2.39.5