Commit 4d866843 authored by Sli's avatar Sli

core: move jquery to header section

parent 4afd7a00
Pipeline #1658 passed with stage
in 12 minutes and 1 second
......@@ -16,6 +16,9 @@
{% else %}
<link rel="stylesheet" href="{{ static('core/font-awesome/css/font-awesome.min.css') }}">
{% endif %}
<!-- Jquery declared here to be accessible in every django widgets -->
<script src="{{ static('core/js/jquery-3.1.0.min.js') }}"></script>
{% endblock %}
</head>
......@@ -248,7 +251,6 @@
{% endblock %}
-->
{% block script %}
<script src="{{ static('core/js/jquery-3.1.0.min.js') }}"></script>
<script src="{{ static('core/js/ui/jquery-ui.min.js') }}"></script>
<script src="{{ static('core/js/ui/i18n/datepicker-fr.js') }}"></script>
<script src="{{ static('core/js/jquery.datetimepicker.full.min.js') }}"></script>
......
......@@ -33,10 +33,6 @@
// Custom markdown parser
function customMarkdownParser(plainText, preview) {
// Wait for jquery to load
var waitForJquery = setInterval(function () {
if (typeof $ != 'undefined'){
clearInterval(waitForJquery)
$.ajax({
url: "{{ markdown_api_url }}",
method: "POST",
......@@ -45,8 +41,6 @@
preview.innerHTML = msg;
});
}
}, 10);
}
// Pretty markdown input
var simplemde = new SimpleMDE({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment