mirror of https://github.com/OWASP/Nettacker.git
Fixed the issue of select all profiles button (#1117)
* earlier selecting the select all profiles selects the all scan methods instead of profiles, fixed that now select all profiles works perfectly * was taking all_profiles also its name, fixed that by adding condition
This commit is contained in:
parent
7c36e44a67
commit
c77246f700
|
|
@ -172,9 +172,9 @@
|
|||
<h3>Profiles</h3>
|
||||
<div class="form-group">
|
||||
<div id="profiles" class="checkbox text-justify">
|
||||
<label><input id="all" type="checkbox" class="check check-all-scans"><a
|
||||
class="label label-info">Select all profiles</a></label>
|
||||
{% autoescape off %}{{profile}}{% endautoescape %}
|
||||
<label><input id="all_profiles" type="checkbox" class="check check-all-profiles"><a
|
||||
class="label label-info">Select all profiles</a></label>
|
||||
{% autoescape off %}{{profile}}{% endautoescape %}
|
||||
</div>
|
||||
</div>
|
||||
<h3>Scan Methods</h3>
|
||||
|
|
@ -299,7 +299,7 @@
|
|||
<input id="exclude_ports" type="text" class="form-control"
|
||||
placeholder="e.g., 80,443,8080">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- HTTP Headers -->
|
||||
<div class="col-md-6">
|
||||
|
|
|
|||
|
|
@ -351,8 +351,10 @@ $(document).ready(function () {
|
|||
var p = [];
|
||||
var n = 0;
|
||||
$("#profiles input:checked").each(function () {
|
||||
p[n] = this.id;
|
||||
n += 1;
|
||||
if (this.id !== "all_profiles") {
|
||||
p[n] = this.id;
|
||||
n += 1;
|
||||
}
|
||||
});
|
||||
var profiles = p.join(",");
|
||||
|
||||
|
|
@ -676,6 +678,10 @@ $(document).ready(function () {
|
|||
$(".checkbox-vuln-module").prop("checked", $(this).prop("checked"));
|
||||
});
|
||||
|
||||
$(".check-all-profiles").click(function () {
|
||||
$("#profiles input[type='checkbox']").not(this).prop("checked", $(this).prop("checked"));
|
||||
});
|
||||
|
||||
$(".check-all-scans").click(function () {
|
||||
$(".checkbox-brute-module").prop("checked", $(this).prop("checked"));
|
||||
$(".checkbox-scan-module").prop("checked", $(this).prop("checked"));
|
||||
|
|
|
|||
Loading…
Reference in New Issue