Skip to content

Commit

Permalink
fix: Do not disable action buttons after using cancel or back button (#…
Browse files Browse the repository at this point in the history
…1391)

* Fix #1377

* fix: After using back button (or cancel button) do not disable action buttons

* Update Changelog
  • Loading branch information
fsbraun authored Jul 16, 2023
1 parent 6e41747 commit 9c8a5be
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
CHANGELOG
=========

unreleased
==========

* Ensure action buttons in directory listing do not get disabled after using
cancel or back button if files or folders are selected.

3.0.1 (2023-07-13)
==================

Expand Down
6 changes: 6 additions & 0 deletions filer/static/filer/js/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ Cl.mediator = new Mediator();

// timeout is needed to wait until table row has class selected.
setTimeout(function () {
// Set classes for checked items
actionSelect.each(function (no, el) {
if (el.checked) {
el.closest('.list-item').classList.add('selected');
}
});
if (navigatorTable.hasClass('selected')) {
actionList.addClass('action-selected');
}
Expand Down

0 comments on commit 9c8a5be

Please sign in to comment.