mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-06 18:40:49 -08:00
Use classList.toggle wherever possible
This commit is contained in:
parent
ee973dcf1d
commit
34a6ad80d5
2 changed files with 5 additions and 13 deletions
|
|
@ -144,11 +144,7 @@ function setupImageForLightbox(e) {
|
|||
}
|
||||
|
||||
function modalZoomSet(modalImage, enable) {
|
||||
if (enable) {
|
||||
modalImage.classList.add('modalImageFullscreen');
|
||||
} else {
|
||||
modalImage.classList.remove('modalImageFullscreen');
|
||||
}
|
||||
if(modalImage) modalImage.classList.toggle('modalImageFullscreen', !!enable);
|
||||
}
|
||||
|
||||
function modalZoomToggle(event) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue