Move jquery.form to layout.html

This prevents it from getting loaded each time the details are viewed in a modal dialog.
pull/221/head
Jonathan Rehm 7 years ago
parent 675e8dd5cd
commit 649579eccd

@ -235,7 +235,6 @@
{% endblock %} {% endblock %}
{% block js %} {% block js %}
<script src="{{ url_for('static', filename='js/libs/jquery.form.js') }}"></script>
<script> <script>
$( document ).ready(function() { $( document ).ready(function() {
$('#have_read_form').ajaxForm(); $('#have_read_form').ajaxForm();

@ -28,6 +28,7 @@
<script src="{{ url_for('static', filename='js/libs/intention.min.js') }}"></script> <script src="{{ url_for('static', filename='js/libs/intention.min.js') }}"></script>
<script src="{{ url_for('static', filename='js/libs/context.min.js') }}"></script> <script src="{{ url_for('static', filename='js/libs/context.min.js') }}"></script>
<script src="{{ url_for('static', filename='js/libs/plugins.js') }}"></script> <script src="{{ url_for('static', filename='js/libs/plugins.js') }}"></script>
<script src="{{ url_for('static', filename='js/libs/jquery.form.js') }}"></script>
<script src="{{ url_for('static', filename='js/main.js') }}"></script> <script src="{{ url_for('static', filename='js/main.js') }}"></script>
{% block header %}{% endblock %} {% block header %}{% endblock %}

Loading…
Cancel
Save