Skip to content

Commit b39b87d

Browse files
authored
Merge pull request #539 from prsnbrg/patch-2
Hide config details about background scan if disabled
2 parents 3b10806 + f3fe371 commit b39b87d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

js/settings.js

+9
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ function av_mode_show_options(str){
171171
$('#av_host, #av_port, #av_request_service, #av_response_header').attr('disabled', false);
172172
$('p.av_host, p.av_port, p.av_mode_icap').show('slow');
173173
}
174+
174175
$(document).ready(function() {
175176
$('#av_submit').on('click', function(event){
176177
var isValid = true;
@@ -246,4 +247,12 @@ $(document).ready(function() {
246247
av_mode_show_options(str);
247248
});
248249
$("#av_mode").change();
250+
$("#av_scan_background").change(function () {
251+
if ($("#av_scan_background").val() === 'true') {
252+
$('p.infected_action').show('slow');
253+
} else {
254+
$('p.infected_action').hide('slow');
255+
}
256+
});
257+
$("#av_scan_background").change();
249258
});

0 commit comments

Comments
 (0)