add Idear/Routine to README

This commit is contained in:
6543 2019-08-27 14:03:01 +02:00
parent 2599f2dd5b
commit 6fb12f56b8
Signed by: 6543
GPG Key ID: A1CA74D27FD13271
1 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,15 @@
# gitea_sortt

Java Script for https://github.com/go-gitea/gitea/pull/7980 (Sortable Tables) .. by header click
Java Script for https://github.com/go-gitea/gitea/pull/7980 (Sortable Tables) .. by header click


## Idear/Routine
* if table head colum class has attribute sort="xy" -> colum header klickable
* Klich at colum header for example `<ID>`
-> script check if url has already a sort= with `<ID>`
NO: if sort="" indikates default (with * prefix) set URLsort=<default>
YES: set URLsort variable
-> script check if URLsort and sort attribute is same
YES: -> check if reverse attribute exist
YES: generate URL with reverse sort param and open
NO: generate URL with sort param and open