1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-24 15:15:22 +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');

View file

@ -1420,6 +1420,13 @@
});
{% endif %}
</script>
<script>
$(document).ready(function(){
$('[data-toggle="popover"]').popover({
placement : 'top'
});
});
</script>
<script>
$(function () {
$('.js-custom__checkbox').change(function () {
@ -1640,12 +1647,5 @@
$("#logs_table > tbody").html(logs);
});
}
</script>
<script type="text/javascript">
$(document).ready(function(){
$('[data-toggle="popover"]').popover({
placement : 'top'
});
});
</script>
{% endblock %}