mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 06:03:20 +00:00
core: optimisation and take off the auto-download of Font Awesome
This commit is contained in:
parent
3548c3e7c4
commit
a4ed535b34
@ -10,12 +10,8 @@
|
||||
<link rel="stylesheet" href="{{ static('ajax_select/css/ajax_select.css') }}">
|
||||
<link rel="stylesheet" href="{{ scss('core/style.scss') }}">
|
||||
<link rel="stylesheet" href="{{ static('core/js/ui/jquery-ui.min.css') }}">
|
||||
{% if settings.EXTERNAL_RES %}
|
||||
<noscript><link rel="stylesheet" href="/static/core/font-awesome/css/font-awesome.min.css"></noscript>
|
||||
<script href="/core/static/core/font-awesome/js/fontawesone.min.js"></script>
|
||||
{% else %}
|
||||
<link rel="stylesheet" href="{{ static('core/font-awesome/css/font-awesome.min.css') }}">
|
||||
{% endif %}
|
||||
<link rel="stylesheet" href="/static/core/font-awesome/css/font-awesome.min.css">
|
||||
<script href="/core/static/core/font-awesome/js/fontawesone.min.js"></script>
|
||||
|
||||
<!-- Jquery declared here to be accessible in every django widgets -->
|
||||
<script src="{{ static('core/js/jquery-3.1.0.min.js') }}"></script>
|
||||
|
@ -28,6 +28,7 @@
|
||||
var easymde = new EasyMDE({
|
||||
element: document.getElementById("{{ widget.attrs.id }}"),
|
||||
spellChecker: false,
|
||||
autoDownloadFontAwesome: false,
|
||||
previewRender: function(plainText, preview){ // Async method
|
||||
clearTimeout(lastAPICall);
|
||||
lastAPICall = setTimeout(function (plainText, preview){
|
||||
|
Loading…
Reference in New Issue
Block a user