mirror of https://github.com/docusealco/docuseal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
527 B
18 lines
527 B
document.addEventListener('DOMContentLoaded', function () {
|
|
function showLoading () {
|
|
document.getElementById('loader').style.display = 'block'
|
|
}
|
|
const editTemplateLink = document.getElementById('edit-template-link')
|
|
if (editTemplateLink) {
|
|
editTemplateLink.addEventListener('click', function (event) {
|
|
event.preventDefault()
|
|
showLoading()
|
|
|
|
const template = this.getAttribute('data-template')
|
|
setTimeout(function () {
|
|
window.location.href = template
|
|
}, 3000)
|
|
})
|
|
}
|
|
})
|