mirror of
https://github.com/vladmandic/automatic
synced 2026-09-04 12:00:46 +02:00
Revert "load description to input box by clicking on card(except checkpoint)"
This reverts commit bd8d3f1692.
This commit is contained in:
@@ -74,15 +74,9 @@ function tryToRemoveExtraNetworkFromPrompt(textarea, text){
|
||||
return false
|
||||
}
|
||||
|
||||
function cardClicked(tabname, textToAdd, allowNegativePrompt, descriptionText){
|
||||
function cardClicked(tabname, textToAdd, allowNegativePrompt){
|
||||
var textarea = allowNegativePrompt ? activePromptTextarea[tabname] : gradioApp().querySelector("#" + tabname + "_prompt > label > textarea")
|
||||
|
||||
var description_textarea = gradioApp().querySelector("#" + tabname+ '_description_input > label > textarea')
|
||||
|
||||
description_textarea.value = descriptionText
|
||||
|
||||
updateInput(description_textarea)
|
||||
|
||||
if(! tryToRemoveExtraNetworkFromPrompt(textarea, textToAdd)){
|
||||
textarea.value = textarea.value + opts.extra_networks_add_text_separator + textToAdd
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user