From 0d9d01c9f5efd6335b8d4c63d518ed064b4de5e3 Mon Sep 17 00:00:00 2001 From: JeLuF Date: Fri, 30 Jun 2023 23:28:24 +0200 Subject: [PATCH] backdrop and drag handlers --- ui/index.html | 2 +- ui/media/js/main.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/index.html b/ui/index.html index ced88a08..979a7de9 100644 --- a/ui/index.html +++ b/ui/index.html @@ -577,7 +577,7 @@
- +  
diff --git a/ui/media/js/main.js b/ui/media/js/main.js index 0cf6c075..9798c0e9 100644 --- a/ui/media/js/main.js +++ b/ui/media/js/main.js @@ -2202,6 +2202,10 @@ embeddingsSearchBox.addEventListener("input", (e) => { updateEmbeddingsList(embeddingsSearchBox.value) }) +modalDialogCloseOnBackdropClick(embeddingsDialog) +makeDialogDraggable(embeddingsDialog) + + if (testDiffusers.checked) { document.getElementById("embeddings-container").classList.remove("displayNone") }