mirror of
https://github.com/prasathmani/tinyfilemanager.git
synced 2026-04-26 10:55:56 +03:00
[GH-ISSUE #197] Sorting by size and time is wrong. #140
Labels
No labels
Feature
Feature
Is It Really an Issue?
Need More Info
Request
Security
bug
duplicate
enhancement
enhancement
help wanted
invalid
pull-request
question
suggestion
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tinyfilemanager#140
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @EV-soft on GitHub (Jul 23, 2019).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/197
Version 2.3.8:
Column size looks cluttered with left adjustment, and is wrong, when numbers are converted by units.
Column time is wrong, when year is located in the middle of the text string.
@EV-soft commented on GitHub (Jul 23, 2019):
One solution to fix sorting, is add a hidden prefix to TD-output:
Line 1764 - Change:
$modif = date(FM_DATETIME_FORMAT, filemtime($path . '/' . $f));To:
Line 1786- Change:
To:
Line 1809- Change:
$modif = date(FM_DATETIME_FORMAT, filemtime($path . '/' . $f));To:
Line 1836- Change:
<?php echo $filesize; ?>To:
<?php echo '<span style="display:none;">'.str_pad($filesize_raw, 18, "0", STR_PAD_LEFT).'</span>'.$filesize; ?>Line 1838- Change:
<td><?php echo $modif ?></td>To:
<td><?php echo '<span style="display:none;">'.$ftime.'</span>'.$modif ?></td>Another defect
For Table: Zebra-background on rows to display:
Line 3142- add:
.table-bordered tr:nth-child(even) { background: #f8f8f8; }@EV-soft commented on GitHub (Aug 3, 2019):
I have worked on other improvements, as well as those already mentioned.
View source documents in ZIP file
Watch the demo here: DEMO
Comments have been added to all corrections. (Search: Translate / EV-soft / more... )
Of particular note is the routine for the maintenance of language translations. (See Settings)
Complete Danish language is included i translation.json
@Huseriato commented on GitHub (May 8, 2020):
We're also interested to see this bug done.