Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,33 +1,23 @@
{% load url from future %}

<script language="javascript">
(function(window, document, version, callback) {
var j, d;
var loaded = false;
if (!(j = window.jQuery) || version > j.fn.jquery || callback(j)) {
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "{{ STATIC_URL }}debug_toolbar/js/jquery.js";
script.onload = script.onreadystatechange = function() {
if (!loaded && (!(d = this.readyState) || d == "loaded" || d == "complete")) {
callback((j = window.jQuery).noConflict(1));
j(script).remove();
}
};
document.documentElement.childNodes[0].appendChild(script)
}
})(window, document, "1.3", function($) {
$('#djDebug .djDebugUserPanel').click(function () {
var target = $('#djDebugUserPanel div.target');

// Only load data once
if (target.children().length) {
return;
}

target.load('{% url "debug-userpanel" %}?next=' + escape(location.href));
});
});

(function(window, document) {
var j = window.djdt.jQuery;
j(document).ready(function() {
j('#djDebug .djDebugUserPanel').click(function () {
var target = j('#djDebugUserPanel div.target');

// Only load data once
if (target.children().length) {
return;
}

target.load('{% url "debug-userpanel" %}?next=' + escape(location.href));
});
});
})(window, document);

</script>

<style type="text/css">
Expand Down