Ticket #822: disclosure.diff

File disclosure.diff, 996 bytes (added by me@…, 19 years ago)

a patch to use disclosure triangles

  • django/views/debug.py

     
    183183    function varToggle(link, id) {
    184184      toggle('v' + id);
    185185      var s = link.getElementsByTagName('span')[0];
    186       var uarr = String.fromCharCode(0x2191);
    187       var darr = String.fromCharCode(0x2193);
     186      var uarr = String.fromCharCode(0x25b6);
     187      var darr = String.fromCharCode(0x25bc);
    188188      s.innerHTML = s.innerHTML == uarr ? darr : uarr;
    189189      return false;
    190190    }
     
    240240   
    241241        {% if frame.vars %}
    242242          <div class="commands">
    243               <a href="#" onclick="return varToggle(this, '{{ frame.id }}')">Local vars <span>&darr;</span> </a>
     243              <a href="#" onclick="return varToggle(this, '{{ frame.id }}')"><span>&#x25b6;</span> Local vars</a>
    244244          </div>
    245245          <table class="vars" id="v{{ frame.id }}">
    246246            <thead>
Back to Top