0
0
Fork 0
mirror of https://github.com/healthchecks/healthchecks.git synced 2025-04-04 21:05:26 +00:00

Fix duplicate HTML element ids in the "Update timeout" modal

This commit is contained in:
Pēteris Caune 2023-12-06 16:34:28 +02:00
parent 461b7ec751
commit 5cd874f1de
No known key found for this signature in database
GPG key ID: E28D7679E9A9EDE2
2 changed files with 3 additions and 3 deletions

View file

@ -243,7 +243,7 @@ $(function () {
}
$("#oncalendar-preview" ).html(data);
var haveError = $("#invalid-arguments").length > 0;
var haveError = $("#invalid-oncalendar-arguments").length > 0;
$("#update-oncalendar-submit").prop("disabled", haveError);
}
});

View file

@ -1,9 +1,9 @@
{% load humanize tz %}
{% if bad_schedule %}
<p id="invalid-arguments">Invalid OnCalendar expression.</p>
<p id="invalid-oncalendar-arguments">Invalid OnCalendar expression.</p>
{% elif bad_tz %}
<p id="invalid-arguments">Invalid timezone.</p>
<p id="invalid-oncalendar-arguments">Invalid timezone.</p>
{% else %}
<table class="table">
<tr><th id="oncalendar-preview-title" colspan="2">Expected Ping Dates</th></tr>