Commit 54179fb6 authored by Michał Woźniak's avatar Michał Woźniak
Browse files

bugfix for site removal

parent ccccdec4
Pipeline #128 passed with stage
in 0 seconds
......@@ -883,7 +883,7 @@ let getEstimatedDays = (site) => {
let genArr = (start, length, step) => {
var arr = []
arr[0] = start
for (i=1; i<length; i++) {
for (var i=1; i<length; i++) {
if (typeof step === 'function') {
arr[i] = step(i, arr)
} else {
......@@ -1297,7 +1297,10 @@ document.addEventListener('DOMContentLoaded', (e)=>{
.split(',') // split by ',' in case we have a number of sites to handle
// any site data containers to be removed?
for (i=hash_sites.length; i<sitesSelects.length; i++) {
console.log(` +-- removing ${sitesSelects.length - hash_sites.length} sites...`)
var cur_site_count = sitesSelects.length
for (var i=hash_sites.length; i<cur_site_count; i++) {
console.log(` i: ${i}`)
removeSite.dispatchEvent(new Event('click'))
......@@ -296,6 +296,7 @@
<p>cobbled together by <a href="">@rysiek</a>; <a href="">code is here</a>; license: <a href="./LICENSE">Affero GPL</a><br/>
uses <a href=""><code>wtf_wikipedia</code></a> and <a href="">Charts.js</a> (both <a href="./LICENSE.wtf_wikipedia-charts.js.txt">MIT-licensed</a>) and the Play font (licensed under the <a href="./Play/OFL.txt">OFL</a>)<br/>
data from Wikipedia</p>
<p>there are no <a href="">barnacle trackers</a> on this page: no fonts, styles, scripts, nor images fetched from third-party servers</p>
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