diff --git a/static/js/add_trello.js b/static/js/add_trello.js index 258bcadd..0804b81e 100644 --- a/static/js/add_trello.js +++ b/static/js/add_trello.js @@ -14,7 +14,7 @@ $(function() { $(".jumbotron").hide(); $("integration-settings").text("Loading..."); - token = tokenMatch[1]; + var token = tokenMatch[1]; var base = document.getElementById("base-url").getAttribute("href").slice(0, -1); var csrf = $('input[name=csrfmiddlewaretoken]').val(); $.ajax({ diff --git a/static/js/checks.js b/static/js/checks.js index d58eb330..a0323f94 100644 --- a/static/js/checks.js +++ b/static/js/checks.js @@ -252,7 +252,7 @@ $(function () { setTimeout(function() { e.target.textContent = "copy"; }, 300); - }) + }); clipboard.on('success', function(e) { e.trigger.textContent = "copied!"; diff --git a/static/js/details.js b/static/js/details.js index 6351be17..88c1d6af 100644 --- a/static/js/details.js +++ b/static/js/details.js @@ -70,7 +70,7 @@ $(function () { headers: {"X-CSRFToken": token}, data: {"state": isOn ? "on" : "off"} }); - }) + }); var statusUrl = document.getElementById("edit-timeout").dataset.statusUrl; var lastStatusText = ""; diff --git a/static/js/set-password.js b/static/js/set-password.js index de30a7b0..37df925f 100644 --- a/static/js/set-password.js +++ b/static/js/set-password.js @@ -1,6 +1,6 @@ $(function () { - $pw = $("#password"); - $meter = $("#meter"); + var $pw = $("#password"); + var $meter = $("#meter"); $pw.on("input", function() { var result = zxcvbn($pw.val()); $meter.attr("class", "score-" + result.score); diff --git a/static/js/update-timeout-modal.js b/static/js/update-timeout-modal.js index 3612cac5..c1efe85b 100644 --- a/static/js/update-timeout-modal.js +++ b/static/js/update-timeout-modal.js @@ -6,7 +6,7 @@ $(function () { if (!code) { code = this.dataset.code; } - + var url = base + "/checks/" + code + "/timeout/"; $("#update-timeout-form").attr("action", url); @@ -58,7 +58,7 @@ $(function () { } return result; - } + }; var periodSlider = document.getElementById("period-slider"); noUiSlider.create(periodSlider, {