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:
parent
3a00c0d2aa
commit
f573578108
5 changed files with 7 additions and 7 deletions
|
@ -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({
|
||||
|
|
|
@ -252,7 +252,7 @@ $(function () {
|
|||
setTimeout(function() {
|
||||
e.target.textContent = "copy";
|
||||
}, 300);
|
||||
})
|
||||
});
|
||||
|
||||
clipboard.on('success', function(e) {
|
||||
e.trigger.textContent = "copied!";
|
||||
|
|
|
@ -70,7 +70,7 @@ $(function () {
|
|||
headers: {"X-CSRFToken": token},
|
||||
data: {"state": isOn ? "on" : "off"}
|
||||
});
|
||||
})
|
||||
});
|
||||
|
||||
var statusUrl = document.getElementById("edit-timeout").dataset.statusUrl;
|
||||
var lastStatusText = "";
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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, {
|
||||
|
|
Loading…
Reference in a new issue