Improfe meta infos
* Update License infos * Reformat Readme
This commit is contained in:
parent
6fb12f56b8
commit
2ec2d2a680
2
LICENSE
2
LICENSE
@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) <year> <copyright holders>
|
||||
Copyright 2019 The Gitea Authors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
20
README.md
20
README.md
@ -3,13 +3,13 @@
|
||||
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
|
||||
## Routine Idear
|
||||
1. if table head colum class has attribute sort="xy" -> colum header klickable
|
||||
2. 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
|
||||
|
Reference in New Issue
Block a user