mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-09 19:56:48 +00:00
fix(templates): the list pages search their rows as text, with one script
The list pages' search (filter-table.js) read what was typed as a
regular expression: a "(" or "[" stopped it with an error. It also
needed jQuery, while the instance list had its own script for the same
search. Both are now static/js/table_filter.js: plain text in any case,
the instance list's state list and host groups where a page has them,
remembered for a day as before. A group's header row is marked as one
(data-group-header) instead of being any row without a state.
This commit is contained in:
parent
b4c999a22f
commit
e5c7dc338d
14 changed files with 58 additions and 56 deletions
|
|
@ -57,5 +57,5 @@
|
|||
{% endblock content %}
|
||||
|
||||
{% block script %}
|
||||
<script src="{% static 'js/filter-table.js' %}"></script>
|
||||
<script src="{% static 'js/table_filter.js' %}"></script>
|
||||
{% endblock script %}
|
||||
|
|
|
|||
|
|
@ -61,5 +61,5 @@
|
|||
{% endblock content %}
|
||||
|
||||
{% block script %}
|
||||
<script src="{% static 'js/filter-table.js' %}"></script>
|
||||
<script src="{% static 'js/table_filter.js' %}"></script>
|
||||
{% endblock script %}
|
||||
|
|
|
|||
|
|
@ -85,5 +85,5 @@
|
|||
{% endblock content %}
|
||||
|
||||
{% block script %}
|
||||
<script src="{% static "js/filter-table.js" %}"></script>
|
||||
<script src="{% static 'js/table_filter.js' %}"></script>
|
||||
{% endblock script %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue