Commits

Maciej Fijalkowski committed f41ef1a Merge

merge

Comments (0)

Files changed (2)

_jitviewer/static/script.js

     $("#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();
+            }
+        });
     });
 }
 

_jitviewer/templates/index.html

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