mirror of
https://git.cmoser.eu/tinytools/django-tinywiki.git
synced 2026-02-04 06:06:33 +01:00
2025.12.31 02:49:47 (cachyos.cmoser.eu)
This commit is contained in:
20
.static/account/js/account.js
Normal file
20
.static/account/js/account.js
Normal file
@@ -0,0 +1,20 @@
|
||||
(function () {
|
||||
const allauth = window.allauth = window.allauth || {}
|
||||
|
||||
function manageEmailForm (o) {
|
||||
const actions = document.getElementsByName('action_remove')
|
||||
if (actions.length) {
|
||||
actions[0].addEventListener('click', function (e) {
|
||||
if (!window.confirm(o.i18n.confirmDelete)) {
|
||||
e.preventDefault()
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
allauth.account = {
|
||||
forms: {
|
||||
manageEmailForm
|
||||
}
|
||||
}
|
||||
})()
|
||||
Reference in New Issue
Block a user