mirror of
https://github.com/prymitive/karma
synced 2026-05-07 03:26:52 +00:00
@@ -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) {
|
||||
|
||||
@@ -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, {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user