Commit ffb1dfd2 authored by Franco Fichtner's avatar Franco Fichtner

openvpn: fix #310

parent 45e1910e
...@@ -489,7 +489,6 @@ function mode_change() { ...@@ -489,7 +489,6 @@ function mode_change() {
} }
switch(value) { switch(value) {
case "p2p_shared_key": case "p2p_shared_key":
document.getElementById("client_opts").style.display="none";
document.getElementById("remote_optsv4").style.display=""; document.getElementById("remote_optsv4").style.display="";
document.getElementById("remote_optsv6").style.display=""; document.getElementById("remote_optsv6").style.display="";
document.getElementById("gwredir_opts").style.display="none"; document.getElementById("gwredir_opts").style.display="none";
...@@ -499,7 +498,6 @@ function mode_change() { ...@@ -499,7 +498,6 @@ function mode_change() {
document.getElementById("inter_client_communication").style.display="none"; document.getElementById("inter_client_communication").style.display="none";
break; break;
case "p2p_tls": case "p2p_tls":
document.getElementById("client_opts").style.display="none";
document.getElementById("remote_optsv4").style.display=""; document.getElementById("remote_optsv4").style.display="";
document.getElementById("remote_optsv6").style.display=""; document.getElementById("remote_optsv6").style.display="";
document.getElementById("gwredir_opts").style.display=""; document.getElementById("gwredir_opts").style.display="";
...@@ -511,7 +509,6 @@ function mode_change() { ...@@ -511,7 +509,6 @@ function mode_change() {
case "server_user": case "server_user":
case "server_tls_user": case "server_tls_user":
document.getElementById("authmodetr").style.display=""; document.getElementById("authmodetr").style.display="";
document.getElementById("client_opts").style.display="";
document.getElementById("remote_optsv4").style.display="none"; document.getElementById("remote_optsv4").style.display="none";
document.getElementById("remote_optsv6").style.display="none"; document.getElementById("remote_optsv6").style.display="none";
document.getElementById("gwredir_opts").style.display=""; document.getElementById("gwredir_opts").style.display="";
...@@ -522,7 +519,6 @@ function mode_change() { ...@@ -522,7 +519,6 @@ function mode_change() {
case "server_tls": case "server_tls":
document.getElementById("authmodetr").style.display="none"; document.getElementById("authmodetr").style.display="none";
default: default:
document.getElementById("client_opts").style.display="";
document.getElementById("remote_optsv4").style.display="none"; document.getElementById("remote_optsv4").style.display="none";
document.getElementById("remote_optsv6").style.display="none"; document.getElementById("remote_optsv6").style.display="none";
document.getElementById("gwredir_opts").style.display=""; document.getElementById("gwredir_opts").style.display="";
...@@ -1649,7 +1645,7 @@ endif; ?> ...@@ -1649,7 +1645,7 @@ endif; ?>
<tr> <tr>
<td colspan="2"><?=gettext("Advanced configuration"); ?></td> <td colspan="2"><?=gettext("Advanced configuration"); ?></td>
</tr> </tr>
<tr id="client_opts"> <tr>
<td width="22%" ><a id="help_for_custom_options" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Advanced"); ?></td> <td width="22%" ><a id="help_for_custom_options" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Advanced"); ?></td>
<td> <td>
<textarea rows="6" cols="78" name="custom_options" id="custom_options"><?=$pconfig['custom_options'];?></textarea><br /> <textarea rows="6" cols="78" name="custom_options" id="custom_options"><?=$pconfig['custom_options'];?></textarea><br />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment