Skip to content

Commit 9c8a5be

Browse files
authored
fix: Do not disable action buttons after using cancel or back button (#1391)
* Fix #1377 * fix: After using back button (or cancel button) do not disable action buttons * Update Changelog
1 parent 6e41747 commit 9c8a5be

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

CHANGELOG.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
CHANGELOG
33
=========
44

5+
unreleased
6+
==========
7+
8+
* Ensure action buttons in directory listing do not get disabled after using
9+
cancel or back button if files or folders are selected.
10+
511
3.0.1 (2023-07-13)
612
==================
713

filer/static/filer/js/base.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ Cl.mediator = new Mediator();
9191

9292
// timeout is needed to wait until table row has class selected.
9393
setTimeout(function () {
94+
// Set classes for checked items
95+
actionSelect.each(function (no, el) {
96+
if (el.checked) {
97+
el.closest('.list-item').classList.add('selected');
98+
}
99+
});
94100
if (navigatorTable.hasClass('selected')) {
95101
actionList.addClass('action-selected');
96102
}

0 commit comments

Comments
 (0)