[pypy-commit] jitviewer default: start working on a filter bar

fijal noreply at buildbot.pypy.org
Wed Jul 20 18:04:09 CEST 2011


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: 
Changeset: r151:220ed6187123
Date: 2011-07-20 18:04 +0200
http://bitbucket.org/pypy/jitviewer/changeset/220ed6187123/

Log:	start working on a filter bar

diff --git a/_jitviewer/static/script.js b/_jitviewer/static/script.js
--- a/_jitviewer/static/script.js
+++ b/_jitviewer/static/script.js
@@ -35,6 +35,11 @@
             show_loop(val);
         }
     }
+    $("#inp-bar").focus();
+    $("#inp-bar").bind("click keyup", function() {
+        var value = $("#inp-bar")[0].value;
+        
+    });
 }
 
 function replace_from(elem, bridge_id)
diff --git a/_jitviewer/templates/index.html b/_jitviewer/templates/index.html
--- a/_jitviewer/templates/index.html
+++ b/_jitviewer/templates/index.html
@@ -22,13 +22,16 @@
     <div id="callstack">
     </div>
   </header>
+  <div>
+    Filter: <input id="inp-bar" type="text" size="80"></input>
+  <div>
   <div id="loops">
     <ul>
       {% for is_entry_bridge, index, item in loops %}
       {% if is_entry_bridge %}
-        <li><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><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>


More information about the pypy-commit mailing list