Moved authentication settings editor JavaScript into js_main assets build process instead of direct linking it to the view.

This commit is contained in:
Matt Scott 2023-04-10 19:58:58 -04:00
parent 9f076330d6
commit c7aba5626d
No known key found for this signature in database
GPG Key ID: A9A0AFFC0E079001
2 changed files with 1 additions and 7 deletions

View File

@ -58,6 +58,7 @@ js_main = Bundle(
'node_modules/jtimeout/src/jTimeout.js', 'node_modules/jtimeout/src/jTimeout.js',
'node_modules/jquery.quicksearch/src/jquery.quicksearch.js', 'node_modules/jquery.quicksearch/src/jquery.quicksearch.js',
'node_modules/knockout/build/output/knockout-latest.js', 'node_modules/knockout/build/output/knockout-latest.js',
'custom/js/app-authentication-settings-editor.js',
'custom/js/custom.js', 'custom/js/custom.js',
'node_modules/bootstrap-datepicker/dist/js/bootstrap-datepicker.js', 'node_modules/bootstrap-datepicker/dist/js/bootstrap-datepicker.js',
filters=(ConcatFilter, 'rjsmin'), filters=(ConcatFilter, 'rjsmin'),

View File

@ -1536,13 +1536,6 @@
{% endblock %} {% endblock %}
{% block extrascripts %} {% block extrascripts %}
{% assets "js_validation" -%}
<script type="text/javascript" src="{{ ASSET_URL }}"></script>
{%- endassets %}
<script type="text/javascript"
src="{{ url_for('static', filename='custom/js/app-authentication-settings-editor.js') }}"></script>
<script> <script>
$(function () { $(function () {
let API_URL = '{{ url_for('admin.setting_authentication_api') }}'; let API_URL = '{{ url_for('admin.setting_authentication_api') }}';