diff options
| author | Aymeric Augustin | 2013-11-16 09:47:14 +0100 |
|---|---|---|
| committer | Aymeric Augustin | 2013-11-16 10:10:09 +0100 |
| commit | 71a2c1237de8ed759c3ba415c8bfd91b62adf193 (patch) | |
| tree | 00bc509a00075a0a9266832ff054d9a2e80b9f6f /debug_toolbar/templates | |
| parent | 6334983458abd4380c21275d1229527778cf93a6 (diff) | |
| download | django-debug-toolbar-71a2c1237de8ed759c3ba415c8bfd91b62adf193.tar.bz2 | |
Clean up DebugToolbar class, especially panels handling.
Diffstat (limited to 'debug_toolbar/templates')
| -rw-r--r-- | debug_toolbar/templates/debug_toolbar/base.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/base.html b/debug_toolbar/templates/debug_toolbar/base.html index 19b32cf..424dc57 100644 --- a/debug_toolbar/templates/debug_toolbar/base.html +++ b/debug_toolbar/templates/debug_toolbar/base.html @@ -20,9 +20,9 @@ if(!window.jQuery) document.write('<scr'+'ipt src="{{ STATIC_URL }}debug_toolbar {% endif %} {% for panel in panels %} <li class="djDebugPanelButton"> - <input type="checkbox" data-cookie="{{ panel.dom_id }}" {% if panel.enabled %}checked="checked" title="{% trans "Disable for next and successive requests" %}"{% else %}title="{% trans "Enable for next and successive requests" %}"{% endif %} /> + <input type="checkbox" data-cookie="djdt{{ panel.panel_id }}" {% if panel.enabled %}checked="checked" title="{% trans "Disable for next and successive requests" %}"{% else %}title="{% trans "Enable for next and successive requests" %}"{% endif %} /> {% if panel.has_content and panel.enabled %} - <a href="{{ panel.url|default:"#" }}" title="{{ panel.title }}" class="{{ panel.dom_id }}"> + <a href="{{ panel.url|default:"#" }}" title="{{ panel.title }}" class="{{ panel.panel_id }}"> {% else %} <div class="contentless{% if not panel.enabled %} disabled{% endif %}"> {% endif %} @@ -46,7 +46,7 @@ if(!window.jQuery) document.write('<scr'+'ipt src="{{ STATIC_URL }}debug_toolbar </div> {% for panel in panels %} {% if panel.has_content and panel.enabled %} - <div id="{{ panel.dom_id }}" class="panelContent"> + <div id="{{ panel.panel_id }}" class="panelContent"> <div class="djDebugPanelTitle"> <a href="" class="djDebugClose">{% trans "Close" %}</a> <h3>{{ panel.title|safe }}</h3> |
