mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
Fixing bug with search box
This commit is contained in:
parent
bf6f2d816a
commit
c2a382f6a0
@ -674,6 +674,7 @@ header p i {
|
||||
#search i {
|
||||
margin-right: 0.3em;
|
||||
color: rgba(255, 255, 255, .5);
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
#search input {
|
||||
@ -1357,4 +1358,4 @@ i.spin {
|
||||
#toolbar p {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -582,6 +582,12 @@ document.addEventListener('listing', event => {
|
||||
|
||||
document.querySelector('#search > div div').innerHTML = "Search or use one of your supported commands: " + user.Commands.join(", ") + ".";
|
||||
document.querySelector('#search input').addEventListener('keyup', searchEvent);
|
||||
|
||||
document.querySelector("#search").addEventListener("click", event => {
|
||||
if(event.target.classList.contains("active") || event.target.classList.contains("material-icons")) return;
|
||||
event.target.classList.add("active");
|
||||
document.querySelector("#search input").focus();
|
||||
});
|
||||
}
|
||||
|
||||
if (user.AllowEdit) {
|
||||
|
Loading…
Reference in New Issue
Block a user