healthchecks_healthchecks/static/js
Pēteris Caune 18585d163d
Improve double-submit prevention in the TOTP form
Chrome users could submit the form multiple time by entering the TOTP
code and then pressing Enter key, or clicking the onscreen submit
button. This would be less likely on low latency connections (because
auto-submit would complete before the user presses Enter key) but quite
doable on high latency connections.

The fix is to attach an event handler to form's "onsubmit" events.
The handler lets the first event through, and call preventDefault()
on subsequent events. This takes care of:

* programmatic submits by calling form.requestSubmit()
* Enter key in an input field
* click on the onscreen submit button
2025-03-14 10:43:58 +02:00
..
adaptive-setinterval.js adaptiveSetInterval fires the first request immediately if runNow is true, in 3 seconds otherwise. 2020-06-01 11:51:40 +03:00
add-check-modal.js Implement OnCalendar schedules in the "Add Check" dialog 2023-12-08 12:02:01 +02:00
add_credential.js Fix webauthn registration failure on Firefox < 119 with Ed25519 keys 2023-11-15 15:58:32 +02:00
add_project_modal.js Focus the "name" input in the "Add Project" modal. 2020-03-05 16:05:06 +02:00
add_pushover.js Switch from bootstrap-select to selectize in pushover and ntfy forms 2023-05-26 13:06:34 +03:00
add_trello.js Fix a crash when adding an integration for an empty Trello account 2021-01-28 12:57:08 +02:00
add_zulip.js Add support for custom topics in Zulip notifications 2022-10-09 11:23:14 +03:00
appearance.js Fix more contrast issues 2021-06-18 17:07:27 +03:00
auto-submit.js Improve double-submit prevention in the TOTP form 2025-03-14 10:43:58 +02:00
badges.js Redesign the "Status Badges" page 2024-02-26 12:34:26 +02:00
bootstrap-native.min.js Eliminate jQuery usage in the login page 2022-06-08 09:46:51 +03:00
bootstrap.min.js Upgrade to Bootstrap 3.4.1 2021-10-01 12:21:54 +03:00
channels.js Read-only users cannot edit or remove channels. 2020-08-26 14:48:31 +03:00
checks.js Implement "no matching checks" message when searching/filtering 2024-11-15 12:11:18 +02:00
details.js Fix js to enable "pause" button when a check is paused but started 2024-10-23 14:32:06 +03:00
docs_cron.js Add cron expression tester and samples in the cron cheatsheet page 2023-04-04 13:54:24 +03:00
initialize-timezone-selects.js Update timezone dropdowns to show frequently used timezones at the top 2024-08-13 13:57:52 +03:00
jquery-3.6.0.min.js Upgrade to jQuery 3.6.0 2021-10-01 13:12:20 +03:00
log.js Fix AJAX views to better handle user logging out 2024-08-20 10:57:36 +03:00
login_tfa.js Refactor webauthn implementation, use webauthn-json 2022-06-19 10:10:57 +03:00
moment-timezone-with-data-10-year-range.min.js Update moment.js timezone data to 0.5.44-2023d 2024-03-29 17:14:40 +02:00
moment.min.js Support informal time zones. 2019-08-22 11:41:08 +03:00
notifications.js Change "Settings - Email Reports" page to allow manual tz selection 2022-12-01 16:12:32 +02:00
nouislider.min.js Add date filters in the Log page 2022-09-09 14:16:17 +03:00
ntfy_form.js Switch from bootstrap-select to selectize in pushover and ntfy forms 2023-05-26 13:06:34 +03:00
ping_details.js Update Ping Details dialog to also show formatted datetimes 2024-05-29 15:43:06 +03:00
profile.js Simplify JS 2021-09-14 09:56:12 +03:00
project.js Make email non-editable in "Invite Member" when team limit reached 2022-02-04 20:43:17 +02:00
projects.js Implement dynamic favicon in the projects overview page 2024-04-10 14:36:42 +03:00
projects_menu.js Improve styling of the project switcher 2023-03-10 11:50:41 +02:00
purify.min.js Fix JS name and remove references to .map files (#854) 2023-07-02 15:25:04 +03:00
search.js Switch from "trigram" to "porter unicode61" tokenizer 2022-08-22 12:51:53 +03:00
selectize.min.js Upgrade selectize.js to v0.15.2, fix CSS issues 2023-06-28 11:42:00 +03:00
set-password.js Update the "Set Password" page to reject very weak passwords 2024-08-15 12:04:28 +03:00
signal_form.js Rename "phone" -> "recipient" in Signal add/edit forms 2024-12-28 11:21:34 +02:00
signup.js Fix JS error in the login page when REGISTRATION_OPEN=False 2023-07-02 15:29:41 +03:00
slug-suggestions.js Update slug validation rules to disallow uppercase 2023-06-15 09:05:26 +03:00
snippet-copy.js Remove debug line 2022-12-15 15:06:50 +02:00
update-timeout-modal.js Make slider labels clickable in the "Update Period & Grace" dialog 2024-10-11 13:37:29 +03:00
webauthn-json.browser-global.js Fix JS name and remove references to .map files (#854) 2023-07-02 15:25:04 +03:00
webhook.js Webhooks support PUT method. 2019-05-28 14:25:29 +03:00
zxcvbn.min.js Fix JS name and remove references to .map files (#854) 2023-07-02 15:25:04 +03:00