mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
fw_log.volt: get filters from url
This commit is contained in:
parent
a3f4d71940
commit
fa44c69b86
@ -393,6 +393,17 @@
|
||||
});
|
||||
});
|
||||
|
||||
// get and apply url params. ie11 compat
|
||||
let urlvars = window.location.search.substring(1).split("&");
|
||||
if (urlvars.length >= 1 && urlvars[0] !== "") {
|
||||
urlvars.forEach(function(value) {
|
||||
$("#filter_tag").val(value.split("=")[0]);
|
||||
$("#filter_condition").val("=");
|
||||
$("#filter_value").val(value.split("=")[1]);
|
||||
$("#add_filter_condition").click();
|
||||
});
|
||||
}
|
||||
|
||||
// startup poller
|
||||
poller();
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user