Загрузить файлы в «static/js»
This commit is contained in:
10
static/js/app.js
Normal file
10
static/js/app.js
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
// Minimal client-side helpers
|
||||||
|
document.querySelectorAll('form').forEach((form) => {
|
||||||
|
form.addEventListener('submit', (e) => {
|
||||||
|
const btn = form.querySelector('button[type="submit"]');
|
||||||
|
if (btn && !btn.disabled) {
|
||||||
|
btn.disabled = true;
|
||||||
|
btn.textContent = 'Загрузка…';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user