corect comment
This commit is contained in:
parent
9546772868
commit
4720a6d57c
5
sortt.js
5
sortt.js
@ -22,8 +22,8 @@ window.sortt=function(normsort,revsort,isdefault){
|
|||||||
|
|
||||||
// parse URL
|
// parse URL
|
||||||
/* script check if url has already a sort=
|
/* 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
|
YES: set url_sort variable
|
||||||
*/
|
*/
|
||||||
let url = new URL(window.location);
|
let url = new URL(window.location);
|
||||||
let url_sort = url.searchParams.get("sort");
|
let url_sort = url.searchParams.get("sort");
|
||||||
@ -34,7 +34,6 @@ window.sortt=function(normsort,revsort,isdefault){
|
|||||||
NO: generate URL with sort param
|
NO: generate URL with sort param
|
||||||
YES: check if reverse attribute exist -> YES: generate URL with reverse sort param
|
YES: check if reverse attribute exist -> YES: generate URL with reverse sort param
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (url_sort != normsort) {
|
if (url_sort != normsort) {
|
||||||
url.searchParams.set("sort",normsort);
|
url.searchParams.set("sort",normsort);
|
||||||
} else if (revsort != "") {
|
} else if (revsort != "") {
|
||||||
|
Reference in New Issue
Block a user