Locatizations.
[wolnelektury.git] / src / wolnelektury / templates / admin / long_filter.html
1 <h3>{{ filter_title }}</h3>
2 <script>
3  function longFilter(f) {
4      $ = django.jQuery;
5      let v = f.value;
6      ul = $(f).next();
7      $('li', ul).each(function(i, e) {
8          $(this).css('display', ($(e).text().search(v) != -1) ? 'block' : 'none');
9      });
10  }
11 </script>
12 <input style="margin: 0 15px" onkeyup="longFilter(this)">
13 <ul class="longfilter" style="word-wrap: anywhere; max-height:400px; overflow:hidden;">
14   {% for choice in choices %}
15     <li{% if choice.selected %} class="selected"{% endif %}>
16       <a href="{{ choice.query_string|iriencode }}" title="{{ choice.display }}">{{ choice.display }}</a></li>
17   {% endfor %}
18 </ul>