bugfix: if search has no other parameters url building ailed
This commit is contained in:
parent
e8d5f33db2
commit
9444d57e5d
2
sortt.js
2
sortt.js
@ -27,7 +27,7 @@ window.sortt=function(normsort,revsort,isdefault){
|
||||
if ( isdefault ) url_sort = normsort;
|
||||
} else {
|
||||
url_sort=window.location.search.substr(window.location.search.indexOf("sort=")+5);
|
||||
url_sort=url_sort.substr(0,url_sort.indexOf("&"));
|
||||
if (url_sort.indexOf("&") >= 0) url_sort=url_sort.substr(0,url_sort.indexOf("&"));
|
||||
}
|
||||
|
||||
// generate new URL
|
||||
|
Reference in New Issue
Block a user