mirror of https://github.com/docusealco/docuseal
parent
8d35f38cf8
commit
33caf94703
@ -1,17 +0,0 @@
|
||||
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)
|
||||
})
|
||||
}
|
||||
})
|
||||
Loading…
Reference in new issue