Skip to content

Commit

Permalink
Fix sorting without item's calculated size in File Manager
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Dec 10, 2021
1 parent 3b56e18 commit 6045dc7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion extensions/file-manager/file-manager-lib.pl
Original file line number Diff line number Diff line change
Expand Up @@ -908,6 +908,7 @@ sub print_content
unless (-e $request_uri{'module'} . '/' . $img) {
$img = "images/icons/mime/unknown.png";
}
my $is_link = string_contains($type, 'symlink');

my $actions =
"<a class='action-link' href='javascript:void(0)' onclick='renameDialog(\"$hlink\")' title='$text{'rename'}' data-container='body'>$rename_icon</a>";
Expand Down Expand Up @@ -992,7 +993,7 @@ sub print_content
(
"<span data-toggle=\"tooltip\" data-html=\"true\" data-title=\"$text{'theme_xhred_filemanager_global_size_in_bytes'}<br>@{[nice_number($list[$count - 1][8])]}\">"
. $size . "</span>");
push(@td_tags, 'class="col-size"');
push(@td_tags, 'data-order="' . ($is_link ? 0 : $is_file ? $list[$count - 1][8] : -1) . '" class="col-size"');
}
if ($userconfig{'columns'} =~ /owner_user/) {
my $user;
Expand Down
2 changes: 1 addition & 1 deletion theme.info
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
desc=Authentic Theme
longdesc=Webmin/Usermin/Virtualmin/Cloudmin theme based on Bootstrap and Font Awesome (https://github.com/authentic-theme/authentic-theme)
version=19.84.6
mversion=00
mversion=01
depends=1.982 1.831
depends_reason=https://github.com/webmin/webmin/commit/ae6921a
webmin=1
Expand Down
2 changes: 1 addition & 1 deletion unauthenticated/js/bundle.min.js

Large diffs are not rendered by default.

Binary file modified unauthenticated/js/bundle.min.js.gz
Binary file not shown.

0 comments on commit 6045dc7

Please sign in to comment.