]> git.mxchange.org Git - friendica.git/commitdiff
Fix wrong condition when redirecting to filtered log view in admin/logs
authorHypolite Petovan <hypolite@mrpetovan.com>
Fri, 9 Dec 2022 21:24:37 +0000 (16:24 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Fri, 9 Dec 2022 21:24:55 +0000 (16:24 -0500)
- Address https://friendica.xyz/display/adf174d5-1563-937d-3cd7-2df680918252

view/theme/frio/js/module/admin/logs/view.js

index 9faf9ec890dca6143e577de2313c76202dde8c9c..ab07882d27e0358b1fc546d9b55205d9aa318549 100644 (file)
@@ -6,7 +6,7 @@ $(function(){
                var value = this.dataset.filterValue;
                var re = RegExp(filter+"=[a-z]*");
                var newhref = location.href;
-               if (!location.href.indexOf("?") < 0) {
+               if (location.href.indexOf("?") < 0) {
                        newhref = location.href + "?" + filter + "=" + value;
                } else if (location.href.match(re)) {
                        newhref = location.href.replace(RegExp(filter+"=[a-z]*"), filter+"="+value);