mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-18 08:44:57 +02:00
musicui fix reset defaults
This commit is contained in:
@@ -784,6 +784,20 @@ function clearFields()
|
||||
document.getElementById("caption").value = "";
|
||||
document.getElementById("lyrics").value = "";
|
||||
document.getElementById("audio_codes").value = "";
|
||||
|
||||
const container = document.getElementById('advanced');
|
||||
const inputs = container.querySelectorAll('input');
|
||||
|
||||
inputs.forEach(input => {
|
||||
if (input.type === 'checkbox') {
|
||||
// For checkboxes, do nothing
|
||||
//input.checked = input.defaultChecked;
|
||||
} else {
|
||||
// For text/number inputs, restore the original 'value'
|
||||
input.value = input.defaultValue;
|
||||
}
|
||||
});
|
||||
|
||||
clearReferenceAudio();
|
||||
}
|
||||
function exportPlan(){
|
||||
|
||||
Reference in New Issue
Block a user