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