Browse Source

Some JS linting fixes

pull/394/head
Pēteris Caune 4 years ago
parent
commit
f573578108
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
5 changed files with 7 additions and 7 deletions
  1. +1
    -1
      static/js/add_trello.js
  2. +1
    -1
      static/js/checks.js
  3. +1
    -1
      static/js/details.js
  4. +2
    -2
      static/js/set-password.js
  5. +2
    -2
      static/js/update-timeout-modal.js

+ 1
- 1
static/js/add_trello.js 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({


+ 1
- 1
static/js/checks.js View File

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


+ 1
- 1
static/js/details.js 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 = "";


+ 2
- 2
static/js/set-password.js 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);


+ 2
- 2
static/js/update-timeout-modal.js 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, {


Loading…
Cancel
Save