mirror of
https://github.com/vladmandic/automatic
synced 2026-08-28 08:00:59 +02:00
merge commits
This commit is contained in:
@@ -106,7 +106,8 @@ function setupImageForLightbox(e) {
|
||||
var event = isFirefox ? 'mousedown' : 'click'
|
||||
e.addEventListener(event, function (evt) {
|
||||
if (evt.button != 0) return;
|
||||
modalZoomSet(gradioApp().getElementById('modalImage'), true)
|
||||
initialZoom = (localStorage.getItem('modalZoom') || true) == 'yes'
|
||||
modalZoomSet(gradioApp().getElementById('modalImage'), initialZoom)
|
||||
evt.preventDefault()
|
||||
showModal(evt)
|
||||
}, true);
|
||||
@@ -115,6 +116,7 @@ function setupImageForLightbox(e) {
|
||||
function modalZoomSet(modalImage, enable) {
|
||||
if (enable) modalImage.classList.add('modalImageFullscreen');
|
||||
else modalImage.classList.remove('modalImageFullscreen');
|
||||
localStorage.setItem('modalZoom', enable ? 'yes' : 'no')
|
||||
}
|
||||
|
||||
function modalZoomToggle(event) {
|
||||
|
||||
Reference in New Issue
Block a user