From e8d5f33db2b33b92320c8b85f0b48a1e260a9147 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Tue, 27 Aug 2019 17:56:10 +0200 Subject: [PATCH] fix some bugs --- sortt.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sortt.js b/sortt.js index fbfcdeb..342d5d0 100644 --- a/sortt.js +++ b/sortt.js @@ -51,9 +51,9 @@ window.sortt=function(normsort,revsort,isdefault){ } if (url_sort != normsort) { - url_new = tmp.substr(0,window.location.search.indexOf("sort=")+5) + normsort + tmp; + url_new += window.location.search.substr(0,window.location.search.indexOf("sort=")+5) + normsort + tmp; } else if (revsort != "") { - url_new = tmp.substr(0,window.location.search.indexOf("sort=")+5) + revsort + tmp; + url_new += window.location.search.substr(0,window.location.search.indexOf("sort=")+5) + revsort + tmp; } }