Merge remote-tracking branch 'upstream/pull/5614'
This commit is contained in:
commit
6f9dfc667b
4 changed files with 4 additions and 1 deletions
|
@ -2,6 +2,7 @@ $(document).ready(function () {
|
||||||
const id = $("#id-embed");
|
const id = $("#id-embed");
|
||||||
|
|
||||||
if (id.data("configured") === false) {
|
if (id.data("configured") === false) {
|
||||||
|
// eslint-disable-next-line no-alert
|
||||||
alert(I18n.t("site.edit.id_not_configured"));
|
alert(I18n.t("site.edit.id_not_configured"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -255,6 +255,7 @@ $(document).ready(function () {
|
||||||
fetch(url, { mode: "no-cors", signal: AbortSignal.timeout(5000) })
|
fetch(url, { mode: "no-cors", signal: AbortSignal.timeout(5000) })
|
||||||
.then(callback)
|
.then(callback)
|
||||||
.catch(function () {
|
.catch(function () {
|
||||||
|
// eslint-disable-next-line no-alert
|
||||||
alert(I18n.t("site.index.remote_failed"));
|
alert(I18n.t("site.index.remote_failed"));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -108,6 +108,7 @@ OSM.DirectionsEndpoint = function Endpoint(map, input, iconUrl, dragCallback, ch
|
||||||
delete endpoint.geocodeRequest;
|
delete endpoint.geocodeRequest;
|
||||||
if (json.length === 0) {
|
if (json.length === 0) {
|
||||||
input.addClass("is-invalid");
|
input.addClass("is-invalid");
|
||||||
|
// eslint-disable-next-line no-alert
|
||||||
alert(I18n.t("javascripts.directions.errors.no_place", { place: endpoint.value }));
|
alert(I18n.t("javascripts.directions.errors.no_place", { place: endpoint.value }));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -86,7 +86,7 @@ module.exports = [
|
||||||
"curly": ["error", "multi-line", "consistent"],
|
"curly": ["error", "multi-line", "consistent"],
|
||||||
"dot-notation": "error",
|
"dot-notation": "error",
|
||||||
"eqeqeq": ["error", "smart"],
|
"eqeqeq": ["error", "smart"],
|
||||||
"no-alert": "warn",
|
"no-alert": "error",
|
||||||
"no-array-constructor": "error",
|
"no-array-constructor": "error",
|
||||||
"no-caller": "error",
|
"no-caller": "error",
|
||||||
"no-console": "warn",
|
"no-console": "warn",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue