Changeset - cd60da87c03c
[Not reviewed]
0 3 0
Christopher Neugebauer - 7 years ago 2017-06-07 22:24:24
chrisjrn@gmail.com
jQuery et al now work
3 files changed with 4 insertions and 6 deletions:
0 comments (0 inline, 0 general)
pinaxcon/templates/_scripts.html
Show inline comments
 
{% 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 %}
pinaxcon/templates/site_base.html
Show inline comments
...
 
@@ -43,13 +43,12 @@
 
    {% include "_footer.html" %}
 
{% endblock %}
 

	
 

	
 
{% block scripts %}
 
    {% include "_scripts.html" %}
 
    <script src="//cdnjs.cloudflare.com/ajax/libs/ace/1.2.0/ace.js"></script>
 
{% endblock %}
 

	
 
{% block extra_body_base %}
 
    {% analytics %}
 
    {% block extra_body %}{% endblock %}
 
{% endblock %}
static/js/site.js
Show inline comments
 
/* 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');
 
    $editors.each((i, el) => {
 
      const editorId = `markdown-editor-${i}`;
 
      const reportDiv = $('<div>').attr('id', editorId);
0 comments (0 inline, 0 general)