This commit is contained in:
Bobby Wibowo 2018-10-19 22:10:30 +07:00
parent e5417f0aa2
commit 1517778ed7
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF
2 changed files with 12 additions and 6 deletions

View File

@ -559,7 +559,14 @@ page.displayThumbnail = function (id) {
if (isimage) {
thumb.src = file.original
thumb.onload = function () { button.style.display = 'none' }
thumb.onload = function () {
button.style.display = 'none'
document.body.querySelector('.swal-overlay .swal-modal:not(.is-expanded)').classList.add('is-expanded')
}
thumb.onerror = function () {
button.className = 'button is-danger'
button.innerHTML = 'Unable to load original'
}
} else {
thumb.style.display = 'none'
const video = document.createElement('video')
@ -567,11 +574,10 @@ page.displayThumbnail = function (id) {
video.controls = true
video.src = file.original
thumb.insertAdjacentElement('afterend', video)
button.style.display = 'none'
}
// Resize modal
document.body.querySelector('.swal-overlay .swal-modal:not(.is-expanded)').classList.add('is-expanded')
button.style.display = 'none'
document.body.querySelector('.swal-overlay .swal-modal:not(.is-expanded)').classList.add('is-expanded')
}
})
}

View File

@ -15,7 +15,7 @@
v2: Images and config files (manifest.json, browserconfig.xml, etc).
v3: CSS and JS files (libs such as bulma, lazyload, etc).
#}
{% set v1 = "pOlCxn3xNn" %}
{% set v1 = "ys4BsdBoB8" %}
{% set v2 = "Ii3JYKIhb0" %}
{% set v3 = "6MfcbDZldp" %}