corect comment
This commit is contained in:
parent
9546772868
commit
4720a6d57c
3
sortt.js
3
sortt.js
@ -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 != "") {
|
||||
|
Reference in New Issue
Block a user