From c1d50fc79645c71987ae156d371777dd371c422d Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Tue, 12 Nov 2013 21:48:42 +0100 Subject: Move store/fetch logic inside the DebugToolbar class. --- debug_toolbar/static/debug_toolbar/js/toolbar.js | 2 +- debug_toolbar/templates/debug_toolbar/base.html | 2 +- debug_toolbar/toolbar.py | 41 ++++++++++++------------ debug_toolbar/views.py | 4 +-- 4 files changed, 25 insertions(+), 24 deletions(-) (limited to 'debug_toolbar') diff --git a/debug_toolbar/static/debug_toolbar/js/toolbar.js b/debug_toolbar/static/debug_toolbar/js/toolbar.js index add8298..9234c7c 100644 --- a/debug_toolbar/static/debug_toolbar/js/toolbar.js +++ b/debug_toolbar/static/debug_toolbar/js/toolbar.js @@ -31,7 +31,7 @@ if ($(inner).empty()) { var ajax_data = { data: { - toolbar_id: $('#djDebug').data('toolbar-id'), + storage_id: $('#djDebug').data('storage-id'), panel_id: this.className }, type: 'GET', diff --git a/debug_toolbar/templates/debug_toolbar/base.html b/debug_toolbar/templates/debug_toolbar/base.html index 4c82140..c3cd339 100644 --- a/debug_toolbar/templates/debug_toolbar/base.html +++ b/debug_toolbar/templates/debug_toolbar/base.html @@ -9,7 +9,7 @@ if(!window.jQuery) document.write('