mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
Interfaces / Diagnostics / Packet Capture - easy (de)select all interfaces button, saves some work when trying to figure out where traffic is leaving.
This commit is contained in:
parent
4738eb409e
commit
92f96b2aa0
@ -319,6 +319,12 @@ include("head.inc");
|
||||
}
|
||||
});
|
||||
});
|
||||
$("#select_all").click(function(e){
|
||||
e.preventDefault();
|
||||
$("#interface option").prop("selected", $("#select_all > i").hasClass("fa-check-square-o"));
|
||||
$("#select_all > i").toggleClass("fa-check-square-o fa-square-o");
|
||||
$("#interface").selectpicker('refresh');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
@ -349,7 +355,7 @@ include("fbegin.inc");
|
||||
<tr>
|
||||
<td><a id="help_for_if" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Interface");?></td>
|
||||
<td>
|
||||
<select name="interface[]" class="selectpicker" multiple="multiple">
|
||||
<select id="interface" name="interface[]" class="selectpicker" multiple="multiple">
|
||||
<?php
|
||||
foreach ($interfaces as $iface => $ifacename): ?>
|
||||
<option value="<?=$iface;?>" <?=in_array($iface, $pconfig['interface']) ? "selected=\"selected\"" : ""; ?>>
|
||||
@ -358,6 +364,9 @@ include("fbegin.inc");
|
||||
<?php
|
||||
endforeach; ?>
|
||||
</select>
|
||||
<button class="btn btn-default" id="select_all" data-toggle="tooltip" title="<?=gettext("(de)select all");?>">
|
||||
<i class="fa fa-check-square-o fa-fw" aria-hidden="true"></i>
|
||||
</button>
|
||||
<div class="hidden" data-for="help_for_if">
|
||||
<?=gettext("Select the interface on which to capture traffic.");?>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user