[static assets] add them to git so we can forget to call "collectstatic" before we just serve

This commit is contained in:
bronsen 2025-03-18 22:57:38 +01:00
parent 003baf931d
commit 77ae66b015
141 changed files with 34703 additions and 0 deletions

View file

@ -0,0 +1,16 @@
'use strict';
{
const inputTags = ['BUTTON', 'INPUT', 'SELECT', 'TEXTAREA'];
const modelName = document.getElementById('django-admin-form-add-constants').dataset.modelName;
if (modelName) {
const form = document.getElementById(modelName + '_form');
for (const element of form.elements) {
// HTMLElement.offsetParent returns null when the element is not
// rendered.
if (inputTags.includes(element.tagName) && !element.disabled && element.offsetParent) {
element.focus();
break;
}
}
}
}