1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

add hide/show all instances funtionality

This commit is contained in:
catborise 2018-11-07 14:29:36 +03:00
parent 8ecd453efe
commit d3b43b2e6a
2 changed files with 13 additions and 8 deletions

View file

@ -2,7 +2,7 @@
<table class="table table-hover table-striped sortable-theme-bootstrap">
<thead>
<tr>
<th>#</th>
<th><a href="#" id="hide_all_instances" onclick="hide_all_host_instances()">#</a> </th>
<th>{% trans "Name" %}<br>{% trans "Description" %}</th></th>
<th>{% trans "User"%}</th>
<th>{% trans "Status" %}</th>
@ -124,6 +124,11 @@
</table>
{% block script %}
<script>
function hide_all_host_instances() {
var rows = $('table tr');
all_host_rows = rows.filter('[host]');
all_host_rows.toggle();
}
function hide_host_instances(host) {
var rows = $('table tr');