mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-06-21 02:18:24 +02:00
Implemented JeLuF's suggestion
This commit is contained in:
parent
2bf7116f01
commit
f3367a6773
@ -3097,12 +3097,12 @@ function galleryImage(item) {
|
|||||||
|
|
||||||
function refreshGallery() {
|
function refreshGallery() {
|
||||||
let container = document.getElementById("imagecontainer")
|
let container = document.getElementById("imagecontainer")
|
||||||
let promptsearchfield = document.getElementById("gallery-prompt-search").value
|
params = new URLSearchParams({
|
||||||
let promptsearch = promptsearchfield.length > 0 ? "prompt=" + promptsearchfield + "&" : ""
|
prompt: promptsearchfield,
|
||||||
let modelsearchfield = document.getElementById("gallery-model-search").value
|
model: modelsearchfield
|
||||||
let modelsearch = modelsearchfield.length > 0 ? "model=" + modelsearchfield + "&" : ""
|
})
|
||||||
container.innerHTML=""
|
container.innerHTML=""
|
||||||
fetch('/all_images?' + promptsearch + modelsearch)
|
fetch('/all_images?' + params)
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(json => {
|
.then(json => {
|
||||||
console.log(json)
|
console.log(json)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user