mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-22 15:51:08 -05:00
Add JavaScript functionality for dynamic UI updates and filtering
- Implemented font color configuration based on numeric values in various sections. - Added resizing functionality for input fields to accommodate text length. - Initialized filters on document ready for improved user interaction. - Created visualization for profile data using fetched dot format. - Enhanced SQL detail page with click event handling for row navigation. - Ensured consistent highlighting for code blocks across multiple pages.
This commit is contained in:
20
staticfiles/account/js/account.js
Normal file
20
staticfiles/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