diff options
| author | Aymeric Augustin | 2014-05-17 22:24:15 +0200 | 
|---|---|---|
| committer | Aymeric Augustin | 2014-05-17 22:24:15 +0200 | 
| commit | 9d6dff760932adbc5449e6d207504c365d029701 (patch) | |
| tree | d881b4048645dbc13cf693447dd9a3deb78b3b3d /debug_toolbar | |
| parent | 6dcddc69309e8177773df4ea18f1bb40d4f0f68f (diff) | |
| download | django-debug-toolbar-9d6dff760932adbc5449e6d207504c365d029701.tar.bz2 | |
Don't show AJAX loader for preloaded panels.
Fix #582, #594. Thanks TacoDelPaco for the report and ionelmc for the fix.
Diffstat (limited to 'debug_toolbar')
| -rw-r--r-- | debug_toolbar/templates/debug_toolbar/base.html | 8 | 
1 files changed, 5 insertions, 3 deletions
| diff --git a/debug_toolbar/templates/debug_toolbar/base.html b/debug_toolbar/templates/debug_toolbar/base.html index 6bc017a..115e627 100644 --- a/debug_toolbar/templates/debug_toolbar/base.html +++ b/debug_toolbar/templates/debug_toolbar/base.html @@ -54,10 +54,12 @@  					<h3>{{ panel.title|safe }}</h3>  				</div>  				<div class="djDebugPanelContent"> +					{% if toolbar.store_id %}  					<img src="{% static 'debug_toolbar/img/ajax-loader.gif' %}" alt="loading" class="loader" /> -					<div class="scroll"> -						{% if not toolbar.store_id %}{{ panel.content }}{% endif %} -					</div> +					<div class="scroll"></div> +					{% else %} +					<div class="scroll">{{ panel.content }}</div> +					{% endif %}  				</div>  			</div>  		{% endif %} | 
