jQuery et al now work
This commit is contained in:
parent
c4c2379a5e
commit
cd60da87c0
3 changed files with 4 additions and 6 deletions
|
@ -1,6 +1,10 @@
|
|||
{% load compress %}
|
||||
{% load staticfiles %}
|
||||
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.js"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/ace/1.2.0/ace.js"></script>
|
||||
|
||||
{% compress js %}
|
||||
<script src='{% static "bootstrap/javascripts/bootstrap.min.js" %}'></script>
|
||||
<script src='{% static "js/site.js" %}'></script>
|
||||
{% endcompress %}
|
||||
|
|
|
@ -46,7 +46,6 @@
|
|||
|
||||
{% block scripts %}
|
||||
{% include "_scripts.html" %}
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/ace/1.2.0/ace.js"></script>
|
||||
{% endblock %}
|
||||
|
||||
{% block extra_body_base %}
|
||||
|
|
|
@ -1,9 +1,4 @@
|
|||
/* global window ace */
|
||||
window.jQuery = window.$ = require('jquery');
|
||||
|
||||
const $ = window.$;
|
||||
|
||||
require('bootstrap');
|
||||
|
||||
const loadEditors = () => {
|
||||
const $editors = $('.modal-body textarea, #id_body, #id_comment, #id_message, #id_text, #id_abstract, #id_additional_notes, #id_content_override, #id_description, #id_biography');
|
||||
|
|
Loading…
Reference in a new issue