Skip to content

Commit

Permalink
Fix: also deselect items in thumbnail view
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed May 12, 2023
1 parent 27c717b commit f07eff1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion filer/static/filer/js/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@ Cl.mediator = new Mediator();

actionSelect.on('change', function () {
// Mark element selected (for table view this is done by Django admin js - we do it ourselves
$(this).closest('.list-item').addClass('selected');
if ($(this).prop("checked")) {
$(this).closest('.list-item').addClass('selected');
} else {
$(this).closest('.list-item').removeClass('selected');
}
// setTimeout makes sure that change event fires before click event which is reliable to admin
setTimeout(function () {
if (navigatorTable.hasClass('selected')) {
Expand Down

0 comments on commit f07eff1

Please sign in to comment.