Skip to content

Commit

Permalink
Grid pages: Broken folder filter toggle (#2842)
Browse files Browse the repository at this point in the history
  • Loading branch information
maurofmferrao authored Jan 6, 2025
1 parent b521d18 commit d1de52d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/src/core/xibo-datatables.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand Down

0 comments on commit d1de52d

Please sign in to comment.