{% 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 = "{{ DEBUG_TOOLBAR_MEDIA_URL }}/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));
  });
});
</script>

<style type="text/css">

#djDebug #djDebugUserPanel ul button
{
  border: none;
  cursor: pointer;
  background: none;
}

#djDebug #djDebugUserPanel th
{
  text-align: left;
}

#djDebug #djDebugUserPanel td
{
  white-space: nowrap;
}
</style>

<div class="target"></div>

{% 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));
  });
});
</script>

<style type="text/css">

#djDebug #djDebugUserPanel ul button
{
  border: none;
  cursor: pointer;
  background: none;
}

#djDebug #djDebugUserPanel th
{
  text-align: left;
}

#djDebug #djDebugUserPanel td
{
  white-space: nowrap;
}
</style>

<div class="target"></div>

Fix loading jquery with the latest debug_toolbar.
Fix loading jquery with the latest debug_toolbar.

Signed-off-by: Chris Lamb <711c73f64afdce07b7e38039a96d2224209e9a6c@playfire.com>
