Skip to content

Commit

Permalink
fix: av mode names & fortinet fields
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepDiver1975 committed Nov 18, 2022
1 parent 87a8d89 commit eb5d025
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions js/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ var antivirusSettings = antivirusSettings || {
var row = $(this).parent();
row.hide();
$.post(OC.generateUrl('apps/files_antivirus/settings/rule/delete'), {id : row.data('id')},
function onSuccess(response){
function onSuccess(){
row.remove();
}
);
Expand Down Expand Up @@ -152,7 +152,7 @@ function av_mode_show_options(str){
return;
}
if (str === 'fortinet') {
$('p.av_socket, p.av_path, p.av_mode_icap').hide('slow');
$('p.av_socket, p.av_path, p.av_mode_icap, p.av_mode_mawgw').hide('slow');
$('#av_socket, #av_path, #av_request_service, #av_response_header, p.av_mode_mawgw, #av_mawgw_request_service, #av_mawgw_response_header').attr('disabled', true);
$('#av_host, #av_port, #av_fortinet_request_service, #av_fortinet_response_header').attr('disabled', false);
$('p.av_host, p.av_port, p.av_mode_fortinet').show('slow');
Expand Down
10 changes: 5 additions & 5 deletions templates/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
<select id="av_mode" name="avMode">
<?php print_unescaped(html_select_options([
'executable' => 'ClamAV ' . $l->t('Executable'),
'daemon' => 'ClamAV ' . $l->t('Daemon'),
'socket' => 'ClamAV ' . $l->t('Daemon (Socket)'),
'icap' => 'ClamAV ' . $l->t('Daemon (ICAP)'),
'fortinet' => $l->t('Fortinet (ICAP)'),
'mawgw' => $l->t('McAfee Webgateway 10.x and higher (ICAP)'),
'daemon' => 'ClamAV Daemon (TCP Socket)',
'socket' => 'ClamAV Daemon (Unix Socket)',
'icap' => 'ClamAV & Kaspersky (ICAP)',
'fortinet' => 'Fortinet (ICAP)',
'mawgw' => 'McAfee Webgateway / Skyhigh Secure Web Gateway (ICAP)',
], $_['avMode'])) ?>
</select>
</p>
Expand Down

0 comments on commit eb5d025

Please sign in to comment.