From d1de52d522996f2b79584d98ac71d1eeb89a246c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mauro=20Ferr=C3=A3o?= Date: Mon, 6 Jan 2025 14:58:04 +0000 Subject: [PATCH] Grid pages: Broken folder filter toggle (#2842) relates to xibosignageltd/xibo-private#886 --- ui/src/core/xibo-datatables.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/src/core/xibo-datatables.js b/ui/src/core/xibo-datatables.js index 1216e206da..b6072f19ad 100644 --- a/ui/src/core/xibo-datatables.js +++ b/ui/src/core/xibo-datatables.js @@ -974,8 +974,8 @@ window.adjustDatatableSize = function(reload) { resizeDisplayMap(); } - $('#grid-folder-filter').toggle('fast', function(ev) { - if ($(ev.currentTarget).is(':hidden')) { + $('#grid-folder-filter').toggle('fast', function() { + if ($('#grid-folder-filter').is(':hidden')) { if (!$('#folder-tree-clear-selection-button').is(':checked')) { // if folder tree is hidden and select everywhere // is not checked, then show breadcrumbs @@ -988,7 +988,7 @@ window.adjustDatatableSize = function(reload) { } if (reload) { - $(ev.currentTarget).closest('.XiboGrid').find('table.dataTable') + $('#grid-folder-filter').closest('.XiboGrid').find('table.dataTable') .DataTable().ajax.reload(); } // set current state of the folder tree visibility to local storage,