clean: remove pycache from tracking

This commit is contained in:
2026-04-30 13:28:53 +02:00
committed by Soriba SYLLA
parent d12b014b20
commit 7ee14e7b3f
525 changed files with 0 additions and 45689 deletions

View File

@@ -1,16 +0,0 @@
'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;
}
}
}
}