add coments for documentation

This commit is contained in:
6543 2019-09-18 21:17:41 +02:00
parent 35b566ed07
commit 2f77862081
Signed by: 6543
GPG Key ID: A1CA74D27FD13271

View File

@ -66,12 +66,15 @@ function getArrow(normsort,revsort,isdefault){
//if sort is sorted as default add arrow tho this table header
if (isdefault) return arrow_down;
} else {

//if sort arg is in url test if it corelates with colum header sort arguments
if (url_sort === normsort) {
//the table is sorted with this header normal
return arrow_down;
} else if (url_sort === revsort) {
//the table is sorted with this header reverse
return arrow_up;
} else {
//the table is NOT sorted with this header
return false;
}
}