|
1 | 1 | {% load i18n %}{% load static from staticfiles %}{% load url from compat %} |
2 | | -<style type="text/css"> |
3 | | -@media print { #djDebug {display:none;}} |
4 | | -</style> |
| 2 | +<link rel="stylesheet" href="{% static 'debug_toolbar/css/print.css' %}" type="text/css" media="print" /> |
5 | 3 | <link rel="stylesheet" href="{% static 'debug_toolbar/css/toolbar.css' %}" type="text/css" /> |
6 | 4 | {% if toolbar.config.JQUERY_URL %} |
7 | 5 | <!-- Prevent our copy of jQuery from registering as an AMD module on sites that use RequireJS. --> |
8 | | -<script>var _djdt_define_backup = window.define; window.define = undefined;</script> |
| 6 | +<script src="{% static 'debug_toolbar/js/jquery_pre.js' %}"></script> |
9 | 7 | <script src="{{ toolbar.config.JQUERY_URL }}"></script> |
10 | | -<script>var djdt = {jQuery: jQuery.noConflict(true)}; window.define = _djdt_define_backup;</script> |
| 8 | +<script src="{% static 'debug_toolbar/js/jquery_post.js' %}"></script> |
11 | 9 | {% else %} |
12 | | -<script>var djdt = {jQuery: jQuery};</script> |
| 10 | +<script src="{% static 'debug_toolbar/js/jquery_existing.js' %}"></script> |
13 | 11 | {% endif %} |
14 | 12 | <script src="{% static 'debug_toolbar/js/toolbar.js' %}"></script> |
15 | | -<div id="djDebug" style="display:none;" dir="ltr" |
| 13 | +<div id="djDebug" hidden="hidden" dir="ltr" |
16 | 14 | data-store-id="{{ toolbar.store_id }}" data-render-panel-url="{% url 'djdt:render_panel' %}" |
17 | 15 | {{ toolbar.config.ROOT_TAG_EXTRA_ATTRS|safe }}> |
18 | | - <div style="display:none;" id="djDebugToolbar"> |
| 16 | + <div hidden="hidden" id="djDebugToolbar"> |
19 | 17 | <ul id="djDebugPanelList"> |
20 | 18 | {% if toolbar.panels %} |
21 | 19 | <li><a id="djHideToolBarButton" href="#" title="{% trans "Hide toolbar" %}">{% trans "Hide" %} »</a></li> |
|
45 | 43 | {% endfor %} |
46 | 44 | </ul> |
47 | 45 | </div> |
48 | | - <div style="display:none;" id="djDebugToolbarHandle"> |
| 46 | + <div hidden="hidden" id="djDebugToolbarHandle"> |
49 | 47 | <span title="{% trans "Show toolbar" %}" id="djShowToolBarButton">«</span> |
50 | 48 | </div> |
51 | 49 | {% for panel in toolbar.panels %} |
|
0 commit comments