Improfe meta infos

* Update License infos
 * Reformat Readme
This commit is contained in:
6543 2019-08-27 14:11:42 +02:00
parent 6fb12f56b8
commit 2ec2d2a680
2 changed files with 11 additions and 11 deletions

View File

@ -1,6 +1,6 @@
MIT License 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 Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View File

@ -3,13 +3,13 @@
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 ## Routine Idear
* if table head colum class has attribute sort="xy" -> colum header klickable 1. if table head colum class has attribute sort="xy" -> colum header klickable
* Klich at colum header for example `<ID>` 2. Klich at colum header for example `<ID>`
-> script check if url has already a sort= with `<ID>` * script check if url has already a sort= with `<ID>`
NO: if sort="" indikates default (with * prefix) set URLsort=<default> - NO: if sort="" indikates default (with * prefix) set URLsort=<default>
YES: set URLsort variable - YES: set URLsort variable
-> script check if URLsort and sort attribute is same * script check if URLsort and sort attribute is same
YES: -> check if reverse attribute exist - YES: check if reverse attribute exist
YES: generate URL with reverse sort param and open - YES: generate URL with reverse sort param and open
NO: generate URL with sort param and open - NO: generate URL with sort param and open