aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruditgulati2020-09-13 15:24:06 -0500
committeruditgulati2020-11-01 06:50:51 -0600
commite106f5888cb4d761a6dcb71dc0273e461ef3c71a (patch)
tree9b6196974a86b3122bc0240a813b76523ce07d4f
parente83bcab9f01ad1aa279f15e8a19700b802320f8b (diff)
downloadgenenetwork2-e106f5888cb4d761a6dcb71dc0273e461ef3c71a.tar.gz
replace var with let in getParams() local variables
-rw-r--r--wqflask/wqflask/templates/search_result_page.html4
-rw-r--r--wqflask/wqflask/templates/snp_browser.html4
2 files changed, 4 insertions, 4 deletions
diff --git a/wqflask/wqflask/templates/search_result_page.html b/wqflask/wqflask/templates/search_result_page.html
index 0bcbd492..6fe44d1a 100644
--- a/wqflask/wqflask/templates/search_result_page.html
+++ b/wqflask/wqflask/templates/search_result_page.html
@@ -176,9 +176,9 @@
$(document).ready( function () {
var getParams = function(url) {
- var parser = document.createElement('a');
+ let parser = document.createElement('a');
parser.href = url;
- var params = parser.search.substring(1);
+ let params = parser.search.substring(1);
if(params.length > 0) {
return ('?'+params);
}
diff --git a/wqflask/wqflask/templates/snp_browser.html b/wqflask/wqflask/templates/snp_browser.html
index c312aee8..129d03c2 100644
--- a/wqflask/wqflask/templates/snp_browser.html
+++ b/wqflask/wqflask/templates/snp_browser.html
@@ -233,9 +233,9 @@
<script language="javascript">
var getParams = function(url) {
- var parser = document.createElement('a');
+ let parser = document.createElement('a');
parser.href = url;
- var params = parser.search.substring(1);
+ let params = parser.search.substring(1);
if(params.length > 0) {
return ('?'+params);
}