(tabname, textToAdd, textToAddNegative, allowNegativePrompt)
| 295 | } |
| 296 | |
| 297 | updateInput(textArea); |
| 298 | } |
| 299 | |
| 300 | function cardClicked(tabname, textToAdd, textToAddNegative, allowNegativePrompt) { |
| 301 | if (textToAddNegative.length > 0) { |
| 302 | updatePromptArea(textToAdd, gradioApp().querySelector("#" + tabname + "_prompt > label > textarea")); |
| 303 | updatePromptArea(textToAddNegative, gradioApp().querySelector("#" + tabname + "_neg_prompt > label > textarea"), true); |
| 304 | } else { |
| 305 | var textarea = allowNegativePrompt ? activePromptTextarea[tabname] : gradioApp().querySelector("#" + tabname + "_prompt > label > textarea"); |
| 306 | updatePromptArea(textToAdd, textarea); |
| 307 | } |
| 308 | } |
nothing calls this directly
no test coverage detected