corect comment

This commit is contained in:
6543 2019-09-18 21:12:16 +02:00
parent 9546772868
commit 4720a6d57c
Signed by: 6543
GPG Key ID: A1CA74D27FD13271

View File

@ -22,7 +22,7 @@ window.sortt=function(normsort,revsort,isdefault){

// parse URL
/* script check if url has already a sort=
NO: if sort=“” indikates default (with * prefix) set url_sort=
NO: if normsort is default set url_sort=
YES: set url_sort variable
*/
let url = new URL(window.location);
@ -34,7 +34,6 @@ window.sortt=function(normsort,revsort,isdefault){
NO: generate URL with sort param
YES: check if reverse attribute exist -> YES: generate URL with reverse sort param
*/

if (url_sort != normsort) {
url.searchParams.set("sort",normsort);
} else if (revsort != "") {