corect logic after short param checks
This commit is contained in:
parent
38deca6a2c
commit
d95a82e823
6
sortt.js
6
sortt.js
@ -4,7 +4,7 @@
|
|||||||
@License MIT
|
@License MIT
|
||||||
@Author 6543
|
@Author 6543
|
||||||
@Repository https://gitea.com/6543/gitea_sortt
|
@Repository https://gitea.com/6543/gitea_sortt
|
||||||
@Version 1.0
|
@Version 1.1
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -13,10 +13,10 @@ window.sortt=function(normsort,revsort,isdefault){
|
|||||||
//sortTable [normsort] (revsort) (isdefault)
|
//sortTable [normsort] (revsort) (isdefault)
|
||||||
|
|
||||||
//normsort is needet
|
//normsort is needet
|
||||||
if (normsort) return false;
|
if (!(normsort)) return false;
|
||||||
|
|
||||||
//default values of optinal parameters
|
//default values of optinal parameters
|
||||||
if (revsort) revsort = "";
|
if (!(revsort)) revsort = "";
|
||||||
|
|
||||||
// parse URL
|
// parse URL
|
||||||
/* script check if url has already a sort=
|
/* script check if url has already a sort=
|
||||||
|
Reference in New Issue
Block a user