mirror of
https://github.com/vladmandic/automatic
synced 2026-09-02 11:00:46 +02:00
make code cleaner
This commit is contained in:
@@ -95,7 +95,7 @@ function saveCardPreview(event, tabname, filename){
|
||||
event.preventDefault()
|
||||
}
|
||||
|
||||
function saveCardDescription(event, tabname, filename,descript){
|
||||
function saveCardDescription(event, tabname, filename, descript){
|
||||
var textarea = gradioApp().querySelector("#" + tabname + '_description_filename > label > textarea')
|
||||
var button = gradioApp().getElementById(tabname + '_save_description')
|
||||
var description = gradioApp().getElementById(tabname+ '_description_input')
|
||||
@@ -106,8 +106,6 @@ function saveCardDescription(event, tabname, filename,descript){
|
||||
|
||||
button.click()
|
||||
|
||||
//alert("add description here!")
|
||||
|
||||
event.stopPropagation()
|
||||
event.preventDefault()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user