Commit 866eef85 authored by Michał Woźniak's avatar Michał Woźniak
Browse files

minor fix

parent 20fab2b3
Pipeline #93 passed with stage
in 0 seconds
......@@ -252,7 +252,8 @@ document.addEventListener('DOMContentLoaded', (e)=>{
// now we can add more sites
var addSite = document.getElementById('add-site')
addSite.classList.add('visible')
addSite.addEventListener('click', (e)=>{
addSite.addEventListener('click', (ev)=>{
ev.preventDefault()
var newSite = sitesSelects[sitesSelects.length - 1].parentElement.parentElement.cloneNode(true)
newSite.getElementsByClassName('site-data')[0].innerHTML="";
sitesSelects[0].parentElement.parentElement.parentElement.appendChild(newSite)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment