diff --git a/autopost/public/autopost.js b/autopost/public/autopost.js index 9837930..52b3d7e 100644 --- a/autopost/public/autopost.js +++ b/autopost/public/autopost.js @@ -669,6 +669,11 @@ $(document).ready(function() { $(this).addClass('hidden'); }); + // Décocher toutes les checkboxes AVANT de recharger + $('.row-checkbox').prop('checked', false); + $('#selectAll').prop('checked', false).prop('indeterminate', false); + $('#bulkActions').addClass('hidden'); + // Recharger les données de la page courante loadPage(currentPage || 1); @@ -676,9 +681,6 @@ $(document).ready(function() { $.getJSON('/autopost/stats', function(s) { if (s) updateStatsUI(s); }); - - // Décocher la case "Tout sélectionner" - $('#selectAll').prop('checked', false).prop('indeterminate', false); }, error: function(xhr) { let errorMsg = 'Erreur lors de la suppression en lot';