ipsec/phase1, replace includes for indexOf for https://github.com/opnsense/core/issues/3149

This commit is contained in:
Ad Schellevis 2019-01-26 16:16:07 +01:00
parent b590033efc
commit eff447b559

View File

@ -438,7 +438,7 @@ include("head.inc");
<script>
$( document ).ready(function() {
$("#iketype").change(function(){
if (['ike', 'ikev2'].includes($(this).val())) {
if (['ike', 'ikev2'].indexOf($(this).val())>= 0) {
$("#mode").prop( "disabled", true );
$("#mode_tr").hide();
} else {