Move shared CSS/JS from templates to static/style.css and static/app.js

This commit is contained in:
2026-06-10 12:34:53 -05:00
parent 7ed7bb2bb0
commit 6f0dfb0b7f
6 changed files with 383 additions and 401 deletions
-13
View File
@@ -105,19 +105,6 @@
<script>
var prefixMaxNums = {{ prefix_max_nums|default({})|tojson }};
function metaSelectChanged(sel, inputId) {
var input = document.getElementById(inputId);
if (sel.value === '__new__') {
input.style.display = '';
input.value = '';
input.focus();
} else {
input.style.display = 'none';
input.value = sel.value;
}
if (inputId === 'brand' || inputId === 'size') updateLabelPreview();
}
function updateLabelPreview() {
var brand = document.getElementById('brand').value.trim();
var size = document.getElementById('size').value.trim();