corect logic after short param checks

This commit is contained in:
6543 2019-09-18 00:43:09 +02:00
parent 38deca6a2c
commit d95a82e823
Signed by: 6543
GPG Key ID: A1CA74D27FD13271
1 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@
@License MIT
@Author 6543
@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)

//normsort is needet
if (normsort) return false;
if (!(normsort)) return false;

//default values of optinal parameters
if (revsort) revsort = "";
if (!(revsort)) revsort = "";

// parse URL
/* script check if url has already a sort=