mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +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"));
|
||||
|
||||
@@ -691,7 +691,6 @@ function addDynamicListeners() {
|
||||
|
||||
addListener("click", "#open_advanced_filter", function(e) {
|
||||
this.preventDefault();
|
||||
document.getElementById("filtersearch_input").focus();
|
||||
M.Modal.getInstance(document.getElementById("advanced_filter")).open();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user