-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sortable Table in Manage Files #169
Comments
@Nicola1971 |
@Nicola1971 |
@Nicola1971 |
@Nicola1971 It is advisable to change the script written in native JS For example, as here https://github.com/tristen/tablesort |
yes, It's like I did ;)
nice, but need to check if works with filesize |
@Nicola1971 No, sorting by file size does not work correctly.((( |
@64j Suggestion: we can use tablesorter.js just for the file manager and styling like other tables in the manager (and move these tables to native js) |
@Nicola1971 Here it works |
@64j Yes! :) i'm not a js master, but looks good to me :) I will check tomorrow, now is like 2am in Italy :) |
@64 tested http://tristen.ca/tablesort/demo/ in Manage Files Pros: works with filesize |
Looks like you pinged the wrong guy :) @Nicola1971 |
@64 sorry :) |
Added to EVO 3.2.1 |
I think sorting columns in Manage Files is a missing feature: it would be useful to see latest modified files (ie: hacking) and files sizes.
Evo use old tablesort.js library for sorting tables in some manager pages (schedule, messages, view children in documents overview (no more works in 1.3x) )
here you can see all manager pages where is used https://github.com/modxcms/evolution/search?utf8=%E2%9C%93&q=tablesort&type=
this old library does not work properly with complex fields like file sizes (does not understand b, Kb, Mb...), so in the past we (tried but) never used for Manage Files page.
I want to replace tablesort.js with a better library : tablesorter https://github.com/christianbach/tablesorter.
Actually i've only added to manage files and tweaked to work with file size:
what do you think? I continue? :)
The text was updated successfully, but these errors were encountered: