add javascript and css for non-click-sortable table headers th #107

Merged
Aevann merged 1 commits from :add-feature-disable-table-th-sort-conditional into master 2023-02-01 14:10:11 +00:00

I noticed there are some over-interactive tables in general on rdrama. Particularly, multiple columns in the shop tables (awards and hats), which allow you to sort by buttons, icons, … The one page for user profile views also comes to mind, because it uses relative time since last visit, is paged server-side and browsers do not know how to sort that type of data anyway.

Also I noticed there are some tables that have disabled sorting by using instead of for the headers as is the case of the following pages:

  • @uid/followed
  • @uid/following

All of these situations are accounted for but need to be changed later in a different PR, because I can't right now.

For example, the "Buy" column of the shop can be changed to the following to disable sorting:

<th class="disable-sort-click">Buy</th>

I noticed there are some over-interactive tables in general on rdrama. Particularly, multiple columns in the shop tables (awards and hats), which allow you to sort by buttons, icons, … The one page for user profile views also comes to mind, because it uses relative time since last visit, is paged server-side and browsers do not know how to sort that type of data anyway. Also I noticed there are some tables that have disabled sorting by using <td> instead of <th> for the headers as is the case of the following pages: * @uid/followed * @uid/following All of these situations are accounted for but need to be changed later in a different PR, because I can't right now. For example, the "Buy" column of the shop can be changed to the following to disable sorting: `<th class="disable-sort-click">Buy</th>`
mummified-corroding-granny added 1 commit 2023-02-01 00:18:20 +00:00
Aevann merged commit 3a3e1d8d74 into master 2023-02-01 14:10:11 +00:00
mummified-corroding-granny deleted branch add-feature-disable-table-th-sort-conditional 2023-02-04 23:18:52 +00:00
Sign in to join this conversation.
There is no content yet.