1. Pypy
  2. Untitled project
  3. jitviewer

Commits

Maciej Fijalkowski  committed 220ed61

start working on a filter bar

  • Participants
  • Parent commits c521762
  • Branches default

Comments (0)

Files changed (2)

File _jitviewer/static/script.js

View file
             show_loop(val);
         }
     }
+    $("#inp-bar").focus();
+    $("#inp-bar").bind("click keyup", function() {
+        var value = $("#inp-bar")[0].value;
+        
+    });
 }
 
 function replace_from(elem, bridge_id)

File _jitviewer/templates/index.html

View file
     <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>