From 2ec2d2a680669724f8719663eb38dc018d2a5d07 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Tue, 27 Aug 2019 14:11:42 +0200 Subject: [PATCH] Improfe meta infos * Update License infos * Reformat Readme --- LICENSE | 2 +- README.md | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/LICENSE b/LICENSE index d449d3e..c7e2b3e 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) +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 diff --git a/README.md b/README.md index dd3cea7..037e0cf 100644 --- a/README.md +++ b/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 `` - -> 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 +## Routine Idear +1. if table head colum class has attribute sort="xy" -> colum header klickable +2. 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