0
0
Fork 0
mirror of https://github.com/healthchecks/healthchecks.git synced 2025-03-17 21:52:44 +00:00

Some JS linting fixes

This commit is contained in:
Pēteris Caune 2020-07-01 19:23:50 +03:00
parent 3a00c0d2aa
commit f573578108
No known key found for this signature in database
GPG key ID: E28D7679E9A9EDE2
5 changed files with 7 additions and 7 deletions

View file

@ -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({

View file

@ -252,7 +252,7 @@ $(function () {
setTimeout(function() {
e.target.textContent = "copy";
}, 300);
})
});
clipboard.on('success', function(e) {
e.trigger.textContent = "copied!";

View file

@ -70,7 +70,7 @@ $(function () {
headers: {"X-CSRFToken": token},
data: {"state": isOn ? "on" : "off"}
});
})
});
var statusUrl = document.getElementById("edit-timeout").dataset.statusUrl;
var lastStatusText = "";

View file

@ -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);

View file

@ -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, {