mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-26 02:54: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="{{ static('ajax_select/css/ajax_select.css') }}">
|
||||||
<link rel="stylesheet" href="{{ scss('core/style.scss') }}">
|
<link rel="stylesheet" href="{{ scss('core/style.scss') }}">
|
||||||
<link rel="stylesheet" href="{{ static('core/js/ui/jquery-ui.min.css') }}">
|
<link rel="stylesheet" href="{{ static('core/js/ui/jquery-ui.min.css') }}">
|
||||||
{% if settings.EXTERNAL_RES %}
|
<link rel="stylesheet" href="/static/core/font-awesome/css/font-awesome.min.css">
|
||||||
<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>
|
<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 %}
|
|
||||||
|
|
||||||
<!-- Jquery declared here to be accessible in every django widgets -->
|
<!-- Jquery declared here to be accessible in every django widgets -->
|
||||||
<script src="{{ static('core/js/jquery-3.1.0.min.js') }}"></script>
|
<script src="{{ static('core/js/jquery-3.1.0.min.js') }}"></script>
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
var easymde = new EasyMDE({
|
var easymde = new EasyMDE({
|
||||||
element: document.getElementById("{{ widget.attrs.id }}"),
|
element: document.getElementById("{{ widget.attrs.id }}"),
|
||||||
spellChecker: false,
|
spellChecker: false,
|
||||||
|
autoDownloadFontAwesome: false,
|
||||||
previewRender: function(plainText, preview){ // Async method
|
previewRender: function(plainText, preview){ // Async method
|
||||||
clearTimeout(lastAPICall);
|
clearTimeout(lastAPICall);
|
||||||
lastAPICall = setTimeout(function (plainText, preview){
|
lastAPICall = setTimeout(function (plainText, preview){
|
||||||
|
Loading…
Reference in New Issue
Block a user