diff --git a/README.md b/README.md index 06ff4c0..cce686d 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Java Script for https://github.com/go-gitea/gitea/pull/7980 (Sortable Tables) .. ## Routine Idear -1. if table head colum class has attribute sort="xy" -> colum header klickable +1. add to table head colum onclick="sortt('sort parameters')" 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= diff --git a/sortt.js b/sortt.js index a7a801c..bb457b6 100644 --- a/sortt.js +++ b/sortt.js @@ -17,7 +17,7 @@ if (window.sortt_url.indexOf("sort=") < 0) { window.sortt_url=window.sortt_url.substr(0,window.sortt_url.indexOf("&")); } //creat global function with main routine -window.sortt_f=function(sort_atr){ +window.sortt=function(sort_atr){ //sortTable [sort attribute] if (sort_atr.length = 0) return;