diff options
| author | Vladislav Poluhin | 2013-04-23 14:16:42 +0800 |
|---|---|---|
| committer | Vladislav Poluhin | 2013-04-23 14:16:42 +0800 |
| commit | 92e2dc9c81508239c11f9cae5295715e64abd9b5 (patch) | |
| tree | 2cb4475949f1a0e4f479a7fdf83a5e168e4e24ae /debug_toolbar | |
| parent | a698a80fc266f9c0593268ceddf887cbd2503cc0 (diff) | |
| download | django-debug-toolbar-92e2dc9c81508239c11f9cae5295715e64abd9b5.tar.bz2 | |
Replace spaces to tabs
Diffstat (limited to 'debug_toolbar')
| -rw-r--r-- | debug_toolbar/static/debug_toolbar/js/toolbar.js | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/debug_toolbar/static/debug_toolbar/js/toolbar.js b/debug_toolbar/static/debug_toolbar/js/toolbar.js index 7cabaf6..34fcaaf 100644 --- a/debug_toolbar/static/debug_toolbar/js/toolbar.js +++ b/debug_toolbar/static/debug_toolbar/js/toolbar.js @@ -34,35 +34,35 @@ window.djdt = (function(window, document, jQuery) { }); $('#djDebug .remoteCall').live('click', function() { - var self = $(this); - var name = self[0].tagName.toLowerCase(); - var ajax_data = {}; + var self = $(this); + var name = self[0].tagName.toLowerCase(); + var ajax_data = {}; - if (name == 'button') { - var form = self.parents('form:eq(0)'); - ajax_data['url'] = self.attr('formaction'); + if (name == 'button') { + var form = self.parents('form:eq(0)'); + ajax_data['url'] = self.attr('formaction'); - if (form.length) { - ajax_data['data'] = form.serialize(); - ajax_data['type'] = form.attr('method') || 'POST'; - } - } + if (form.length) { + ajax_data['data'] = form.serialize(); + ajax_data['type'] = form.attr('method') || 'POST'; + } + } - if (name == 'a') { - ajax_data['url'] = self.attr('href'); - } + if (name == 'a') { + ajax_data['url'] = self.attr('href'); + } - $.ajax(ajax_data).done(function(data){ - $('#djDebugWindow').html(data).show(); - }).fail(function(xhr){ - var message = '<div class="djDebugPanelTitle"><a class="djDebugClose djDebugBack" href="">Back</a><h3>'+xhr.status+': '+xhr.statusText+'</h3></div>'; - $('#djDebugWindow').html(message).show(); - }); + $.ajax(ajax_data).done(function(data){ + $('#djDebugWindow').html(data).show(); + }).fail(function(xhr){ + var message = '<div class="djDebugPanelTitle"><a class="djDebugClose djDebugBack" href="">Back</a><h3>'+xhr.status+': '+xhr.statusText+'</h3></div>'; + $('#djDebugWindow').html(message).show(); + }); - $('#djDebugWindow a.djDebugBack').live('click', function() { - $(this).parent().parent().hide(); - return false; - }); + $('#djDebugWindow a.djDebugBack').live('click', function() { + $(this).parent().parent().hide(); + return false; + }); return false; }); |
