Commits

salvator committed 57b3d61

fixed jquery loading

Comments (0)

Files changed (2)

admintools_bootstrap/templates/admin/base.html

-{% load theming_tags admintools_bootstrap %}
+{% load theming_tags admintools_bootstrap static %}
 <!DOCTYPE html>
 <html lang="{{ LANGUAGE_CODE }}" xml:lang="{{ LANGUAGE_CODE }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
 <head>
 <script type="text/javascript">window.__admin_media_prefix__ = "{% filter escapejs %}{% admin_media_prefix %}{% endfilter %}";</script>
 {% block extrahead %}{% endblock %}
 
-<script type="text/javascript">
-  {# using jQuery loaded by Django #}
-  var $, jQuery;
-  $ = jQuery = django.jQuery;
-</script>
 
-<script type="text/javascript" src="{{ STATIC_URL }}admintools_bootstrap/chosen/chosen.jquery.js"></script>
-<script type="text/javascript" src="{{ STATIC_URL }}admintools_bootstrap/js/jquery-ui-1.8.16.custom.min.js"></script>
-<script type="text/javascript" src="{{ STATIC_URL }}admintools_bootstrap/bootstrap/js/bootstrap-dropdown.js"></script>
-<script type="text/javascript" src="{{ STATIC_URL }}admintools_bootstrap/bootstrap/js/bootstrap-alert.js"></script>
-<script type="text/javascript" src="{{ STATIC_URL }}admintools_bootstrap/bootstrap/js/bootstrap-tooltip.js"></script>
+<script type="text/javascript" src="{% static "admin/js/jquery.js" %}"></script>
+<script type="text/javascript" src="{% static "admintools_bootstrap/chosen/chosen.jquery.js" %}"></script>
+<script type="text/javascript" src="{% static "admintools_bootstrap/js/jquery-ui-1.8.16.custom.min.js" %}"></script>
+<script type="text/javascript" src="{% static "admintools_bootstrap/bootstrap/js/bootstrap-dropdown.js" %}"></script>
+<script type="text/javascript" src="{% static "admintools_bootstrap/bootstrap/js/bootstrap-alert.js" %}"></script>
+<script type="text/javascript" src="{% static "admintools_bootstrap/bootstrap/js/bootstrap-tooltip.js" %}"></script>
 
 {% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE" />{% endblock %}
 

admintools_bootstrap/templates/admin/index.html

 {% extends "admin/base_site.html" %}
-{% load i18n admin_tools_dashboard_tags %}
+{% load i18n admin_tools_dashboard_tags static %}
 
 {% block extrastyle %}
 {{ block.super }}
 {% endblock %}
 {% endblock %}
 
-
 {% block breadcrumbs %}{% endblock %}
 {% block content_title %}{% endblock %}
 {% block content %}