Skip to content

Commit

Permalink
Close #591 - Add jquery, bootstrap and material to base bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeG committed Oct 19, 2019
1 parent 614480e commit 5a23f9e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 9 additions & 0 deletions eventol/front/src/libs/base.js
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
import './base.scss';

import $ from 'jquery';

window.jQuery = $;
window.$ = $;

require('bootstrap/dist/js/bootstrap');
require('bootstrap-material-design/dist/js/ripples');
require('bootstrap-material-design/dist/js/material');
4 changes: 0 additions & 4 deletions eventol/manager/templates/base-main.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
<link rel="shortcut icon" type="image/png" href="{% static "favicon.ico" %}"/>
{% render_bundle 'base' %}

<script src="{% static "manager/bower_components/jquery/dist/jquery.min.js" %}"></script>
<script type="text/javascript" src="{% url 'javascript-catalog' %}"></script>

<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/icon?family=Material+Icons">
Expand Down Expand Up @@ -332,9 +331,6 @@
</footer>

{% block script %}
<script src="{% static "manager/bower_components/bootstrap/dist/js/bootstrap.min.js" %}"></script>
<script src="{% static "manager/bower_components/bootstrap-material-design/dist/js/ripples.min.js" %}"></script>
<script src="{% static "manager/bower_components/bootstrap-material-design/dist/js/material.min.js" %}"></script>
{% block material %}
<script>
$(document).ready(function () {
Expand Down

0 comments on commit 5a23f9e

Please sign in to comment.