From: Damyan Ivanov Date: Mon, 7 Mar 2022 21:37:15 +0000 (+0000) Subject: dismiss the mass-action button after performing the action X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=e549fdbfe63e60335c2988b027c130467220dc28;p=lsl.git dismiss the mass-action button after performing the action --- 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; }); });