add event listener for filter box

This commit is contained in:
Sundog Jones 2024-09-03 11:43:42 -04:00
parent de08f9fa0c
commit 37699bf9f6

View File

@ -285,6 +285,13 @@
</template>
<script>
const init_library = () => {
// set up handler for library filtering
const filter_box = document.querySelector("#media_library_filter");
filter_box.addEventListener("keypress", (e) => {
if (e.key === 'Enter') {
fetch_filtered_media_items();
}
});
// set up drag'n'drop file upload handling
const upload_target = document.getElementById("upload_target");
upload_target.addEventListener("dragenter", (event) => {