add coments for documentation
This commit is contained in:
parent
35b566ed07
commit
2f77862081
5
sortt.js
5
sortt.js
@ -66,12 +66,15 @@ function getArrow(normsort,revsort,isdefault){
|
|||||||
//if sort is sorted as default add arrow tho this table header
|
//if sort is sorted as default add arrow tho this table header
|
||||||
if (isdefault) return arrow_down;
|
if (isdefault) return arrow_down;
|
||||||
} else {
|
} else {
|
||||||
|
//if sort arg is in url test if it corelates with colum header sort arguments
|
||||||
if (url_sort === normsort) {
|
if (url_sort === normsort) {
|
||||||
|
//the table is sorted with this header normal
|
||||||
return arrow_down;
|
return arrow_down;
|
||||||
} else if (url_sort === revsort) {
|
} else if (url_sort === revsort) {
|
||||||
|
//the table is sorted with this header reverse
|
||||||
return arrow_up;
|
return arrow_up;
|
||||||
} else {
|
} else {
|
||||||
|
//the table is NOT sorted with this header
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user