Merge pull request #120 from cloudflare/eslint-fixes

Eslint fixes
This commit is contained in:
Łukasz Mierzwa
2017-06-13 09:02:06 -07:00
committed by GitHub
6 changed files with 17 additions and 17 deletions

View File

@@ -24,7 +24,7 @@ var QueryString = (function() {
// If the "search" string exists, then build params from it
if (urlQueryString) {
var keyRegex = new RegExp("([\?&])" + key + "[^&]*");
var keyRegex = new RegExp("([?&])" + key + "[^&]*");
// If param exists already, update it
if (urlQueryString.match(keyRegex) !== null) {

View File

@@ -4,7 +4,7 @@
// init sentry client if sentry dsn is set
if ($("body").data("raven-dsn")) {
var dsn = $("body").data("raven-dsn").replace("\/", "/");
var dsn = $("body").data("raven-dsn");
// raven itself can fail if invalid DSN is passed
try {
Raven.config(dsn, {

View File

@@ -145,7 +145,7 @@ var Silence = (function() {
error: function(xhr, textStatus, errorThrown) {
var err = xhr.responseText || errorThrown || textStatus;
modal.find(".modal-body").html(
Templates.Render("silenceFormFatal", {error: err})
Templates.Render("silenceFormFatal", {error: err})
);
},
success: function(data) {
@@ -261,7 +261,7 @@ var Silence = (function() {
err = j.error;
}
} catch (error) {
// can't parse json, do nothing
// can't parse json, do nothing
}
}

View File

@@ -22,7 +22,7 @@ var UI = (function() {
);
var hints = Autocomplete.GenerateHints(labelKey, labelVal);
modal.find(".modal-body").html(
Templates.Render("modalBody", {hints: hints})
Templates.Render("modalBody", {hints: hints})
);
$(".modal-table").on("click", ".modal-button-filter", function(elem) {
var filter = $(elem.target).data("filter-append-value");

View File

@@ -246,13 +246,13 @@ $(document).ready(function() {
}
// templates might not be loaded yet, make some html manually
$("#errors").html(
"<div class='jumbotron'>" +
"<h1 class='text-center'>" +
"Internal error <i class='fa fa-exclamation-circle text-danger'/>" +
"</h1>" +
"<div class='text-center'><p>" +
error.message +
"</p></div></div>"
"<div class='jumbotron'>" +
"<h1 class='text-center'>" +
"Internal error <i class='fa fa-exclamation-circle text-danger'/>" +
"</h1>" +
"<div class='text-center'><p>" +
error.message +
"</p></div></div>"
).show();
}

File diff suppressed because one or more lines are too long