Move shared CSS/JS from templates to static/style.css and static/app.js
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user