Migrate frontend to pnpm+parcel with JS modules
This commit is contained in:
parent
4d8b7d6e62
commit
0b8fbea6c3
30 changed files with 2289 additions and 404 deletions
|
|
@ -118,25 +118,3 @@
|
|||
</form>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block javascript %}
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$("#field_type").on("change", function () {
|
||||
var enable = false;
|
||||
if ($(this).val() == "list") {
|
||||
enable = true;
|
||||
|
||||
$("#list-disabled").remove();
|
||||
} else {
|
||||
$("#list").append('<option id="list-disabled" selected></option>');
|
||||
}
|
||||
|
||||
$("#list").prop("disabled", !enable);
|
||||
$("#list").prop("required", enable);
|
||||
});
|
||||
|
||||
$("#field_type").trigger("change");
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue