Author: Maciej Fijalkowski <fij...@gmail.com> Branch: Changeset: r154:f41ef1a56836 Date: 2011-07-22 11:36 +0200 http://bitbucket.org/pypy/jitviewer/changeset/f41ef1a56836/
Log: merge diff --git a/_jitviewer/static/script.js b/_jitviewer/static/script.js --- a/_jitviewer/static/script.js +++ b/_jitviewer/static/script.js @@ -38,7 +38,14 @@ $("#inp-bar").focus(); $("#inp-bar").bind("click keyup", function() { var value = $("#inp-bar")[0].value; - + $(".loopitem").each(function (i, l) { + glob = l; + if (l.getAttribute('name').search(value) != -1) { + $(l).show(); + } else { + $(l).hide(); + } + }); }); } diff --git a/_jitviewer/templates/index.html b/_jitviewer/templates/index.html --- a/_jitviewer/templates/index.html +++ b/_jitviewer/templates/index.html @@ -29,9 +29,9 @@ <ul> {% for is_entry_bridge, index, item in loops %} {% if is_entry_bridge %} - <li class="loopitem" id="loop-{{index}}" name={{item.repr()}}><span>Entry bridge: <a href="/" onClick="show_loop({{index}}); return false">{{item.repr()}}</a> run {{item.count}} times</span></li> + <li class="loopitem" id="loop-{{index}}" name="{{item.repr()}}"><span>Entry bridge: <a href="/" onClick="show_loop({{index}}); return false">{{item.repr()}}</a> run {{item.count}} times</span></li> {% else %} - <li class="loopitem" id="loop-{{index}}" name={{item.repr()}}><span><a href="/" onClick="show_loop({{index}}); return false">{{item.repr()}}</a> run {{item.count}} times</span></li> + <li class="loopitem" id="loop-{{index}}" name="{{item.repr()}}"><span><a href="/" onClick="show_loop({{index}}); return false">{{item.repr()}}</a> run {{item.count}} times</span></li> {% endif %} {% endfor %} </ul> _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit