mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-08 20:48:48 +00:00
Focus and blur modal-input for advanced filtering
This commit is contained in:
@@ -146,6 +146,11 @@ var Channel = {
|
||||
M.Modal.init(document.getElementById("advanced_filter"), {
|
||||
onCloseEnd: function() {
|
||||
document.querySelector(".filter-results").innerHTML = "";
|
||||
document.getElementById("filtersearch_input").value = "";
|
||||
document.getElementById("filtersearch_input").blur();
|
||||
},
|
||||
onOpenEnd: function() {
|
||||
document.getElementById("filtersearch_input").focus();
|
||||
}
|
||||
});
|
||||
M.Modal.init(document.getElementById("help"));
|
||||
|
||||
Reference in New Issue
Block a user