mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-26 02:05:09 +01:00
Don't show lossless WEBP toggle for JPEG on first load
https://discord.com/channels/1014774730907209781/1021695193499582494/1090402304173277266
This commit is contained in:
parent
044e3746ca
commit
40598c28af
@ -237,7 +237,7 @@
|
|||||||
<option value="png">png</option>
|
<option value="png">png</option>
|
||||||
<option value="webp">webp</option>
|
<option value="webp">webp</option>
|
||||||
</select>
|
</select>
|
||||||
<span id="output_lossless_container">
|
<span id="output_lossless_container" class="displayNone">
|
||||||
<input id="output_lossless" name="output_lossless" type="checkbox"><label for="output_lossless">Lossless</label></td></tr>
|
<input id="output_lossless" name="output_lossless" type="checkbox"><label for="output_lossless">Lossless</label></td></tr>
|
||||||
</span>
|
</span>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
|
@ -1557,19 +1557,19 @@ updateOutputQuality()
|
|||||||
|
|
||||||
function updateOutputQualityVisibility() {
|
function updateOutputQualityVisibility() {
|
||||||
if (outputFormatField.value === 'webp') {
|
if (outputFormatField.value === 'webp') {
|
||||||
outputLosslessContainer.style.display = 'unset'
|
outputLosslessContainer.classList.remove('displayNone')
|
||||||
if (outputLosslessField.checked) {
|
if (outputLosslessField.checked) {
|
||||||
outputQualityRow.style.display='none'
|
outputQualityRow.classList.add('displayNone')
|
||||||
} else {
|
} else {
|
||||||
outputQualityRow.style.display='table-row'
|
outputQualityRow.classList.remove('displayNone')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (outputFormatField.value === 'png') {
|
else if (outputFormatField.value === 'png') {
|
||||||
outputQualityRow.style.display='none'
|
outputQualityRow.classList.add('displayNone')
|
||||||
outputLosslessContainer.style.display = 'none'
|
outputLosslessContainer.classList.add('displayNone')
|
||||||
} else {
|
} else {
|
||||||
outputQualityRow.style.display='table-row'
|
outputQualityRow.classList.remove('displayNone')
|
||||||
outputLosslessContainer.style.display = 'none'
|
outputLosslessContainer.classList.add('displayNone')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user