mirror of https://github.com/docusealco/docuseal
				
				
				
			
							parent
							
								
									3ef20560b8
								
							
						
					
					
						commit
						6c38173e1e
					
				| @ -0,0 +1,15 @@ | ||||
| document.addEventListener("DOMContentLoaded", function () { | ||||
|   function showLoading() { | ||||
|     document.getElementById("loader").style.display = "block"; | ||||
|   } | ||||
|   var editTemplateLink = document.getElementById("edit-template-link"); | ||||
|   editTemplateLink.addEventListener("click", function (event) { | ||||
|     event.preventDefault(); | ||||
|     showLoading(); | ||||
| 
 | ||||
|     var template = this.getAttribute("data-template"); | ||||
|     setTimeout(function () { | ||||
|       window.location.href = template; | ||||
|     }, 3000); | ||||
|   }); | ||||
| }); | ||||
					Loading…
					
					
				
		Reference in new issue