Blame view

sources/apps/files_antivirus/js/settings.js 451 Bytes
03e52840d   Kload   Init
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  function av_mode_show_options(str){
  	if ( str == 'daemon'){
  		$('p.av_host').show('slow');
  		$('p.av_port').show('slow');
  		$('p.av_path').hide('slow');
  	} else if (str == 'executable'){
  		$('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();
  });