jumbo patch

This commit is contained in:
Vladimir Mandic
2023-05-17 14:15:38 -04:00
parent 554f26296e
commit 0ccda9bc8b
56 changed files with 686 additions and 612 deletions
+1 -3
View File
@@ -1,12 +1,10 @@
/* global gradioApp, get_tab_index */
window.onload = (function () {
window.addEventListener('drop', (e) => {
const target = e.composedPath()[0];
if (!target.placeholder) return;
const idx = selected_gallery_index();
if (target.placeholder.indexOf('Prompt') == -1) return;
const prompt_target = get_tab_index('tabs') == 1 ? 'img2img_prompt_image' : 'txt2img_prompt_image';
e.stopPropagation();
e.preventDefault();
const imgParent = gradioApp().getElementById(prompt_target);