Blame view
sources/apps/files_antivirus/js/settings.js
683 Bytes
|
42e4f8d60
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
function av_mode_show_options(str){
if ( str == 'daemon'){
$('p.av_socket').hide('slow');
$('p.av_host').show('slow');
$('p.av_port').show('slow');
$('p.av_path').hide('slow');
} else if ( str == 'socket' ) {
$('p.av_socket').show('slow');
$('p.av_path').hide('slow');
$('p.av_host').hide('slow');
$('p.av_port').hide('slow');
} else if (str == 'executable'){
$('p.av_socket').hide('slow');
$('p.av_host').hide('slow');
$('p.av_port').hide('slow');
$('p.av_path').show('slow');
}
}
$(document).ready(function() {
$("#av_mode").change(function () {
var str = $("#av_mode").val();
av_mode_show_options(str);
});
$("#av_mode").change();
});
|