mirror of
https://github.com/friendica/friendica
synced 2024-12-23 09:20:17 +00:00
Fix wrong condition when redirecting to filtered log view in admin/logs
- Address https://friendica.xyz/display/adf174d5-1563-937d-3cd7-2df680918252
This commit is contained in:
parent
74be29e822
commit
85db716894
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ $(function(){
|
||||||
var value = this.dataset.filterValue;
|
var value = this.dataset.filterValue;
|
||||||
var re = RegExp(filter+"=[a-z]*");
|
var re = RegExp(filter+"=[a-z]*");
|
||||||
var newhref = location.href;
|
var newhref = location.href;
|
||||||
if (!location.href.indexOf("?") < 0) {
|
if (location.href.indexOf("?") < 0) {
|
||||||
newhref = location.href + "?" + filter + "=" + value;
|
newhref = location.href + "?" + filter + "=" + value;
|
||||||
} else if (location.href.match(re)) {
|
} else if (location.href.match(re)) {
|
||||||
newhref = location.href.replace(RegExp(filter+"=[a-z]*"), filter+"="+value);
|
newhref = location.href.replace(RegExp(filter+"=[a-z]*"), filter+"="+value);
|
||||||
|
|
Loading…
Reference in a new issue