diff options
author | uditgulati | 2020-08-23 14:47:39 -0500 |
---|---|---|
committer | uditgulati | 2020-11-01 06:47:02 -0600 |
commit | 0952e43989be3f24321932c3dd33fdc697c5703a (patch) | |
tree | ef260903e2aa1ebec479f96262b28c25e00e47e3 /wqflask | |
parent | 6b7dfb6ad280aa247c106f155fef81a03bd71c65 (diff) | |
download | genenetwork2-0952e43989be3f24321932c3dd33fdc697c5703a.tar.gz |
replace var to let for variables in loops
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/templates/snp_browser.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wqflask/wqflask/templates/snp_browser.html b/wqflask/wqflask/templates/snp_browser.html index 284a371a..435a521c 100644 --- a/wqflask/wqflask/templates/snp_browser.html +++ b/wqflask/wqflask/templates/snp_browser.html @@ -539,17 +539,17 @@ var headers = []; var col_header = rows[0].querySelectorAll("th"); - for(var i = 1; i < col_header.length; i++) { + for(let i = 1; i < col_header.length; i++) { headers.push(col_header[i].getAttribute("name")); } csv.push(headers.join(",")); - for (var i = 1; i < rows.length; i++) { + for (let i = 1; i < rows.length; i++) { var row = [], cols = rows[i].querySelectorAll("td"); var checkBox = rows[i].querySelector("input"); if(checkBox.checked == true) { - for (var j = 1; j < cols.length; j++) + for (let j = 1; j < cols.length; j++) row.push(cols[j].innerText); csv.push(row.join(",")); |