From 6fb12f56b8fb4bd64a984862170f51c217c8ddd1 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Tue, 27 Aug 2019 14:03:01 +0200 Subject: [PATCH] add Idear/Routine to README --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0ef2ba5..dd3cea7 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,15 @@ # gitea_sortt -Java Script for https://github.com/go-gitea/gitea/pull/7980 (Sortable Tables) .. by header click \ No newline at end of file +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 `` + -> script check if url has already a sort= with `` + NO: if sort="" indikates default (with * prefix) set URLsort= + 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