Allow a dummy none options so cloned interfaces like gif/gre can be assigned safely.

This commit is contained in:
Ermal Luçi 2008-07-25 16:03:09 +00:00
parent 2995a723fb
commit 792bd57206
2 changed files with 2 additions and 2 deletions

View File

@ -747,7 +747,7 @@ function show_mon_config() {
<tr>
<td valign="middle" class="vncell"><strong>Type</strong></td>
<td class="vtable"> <select name="type" class="formselect" id="type" onchange="type_change()">
<?php $opts = split(" ", "Static DHCP PPPoE PPTP"); // CarpDEV-DHCP");
<?php $opts = split(" ", "none Static DHCP PPPoE PPTP"); // CarpDEV-DHCP");
foreach ($opts as $opt): ?>
<option <?php if ($opt == $pconfig['type']) echo "selected";?>>
<?=htmlspecialchars($opt);?>

View File

@ -747,7 +747,7 @@ function show_mon_config() {
<tr>
<td valign="middle" class="vncell"><strong>Type</strong></td>
<td class="vtable"> <select name="type" class="formselect" id="type" onchange="type_change()">
<?php $opts = split(" ", "Static DHCP PPPoE PPTP"); // CarpDEV-DHCP");
<?php $opts = split(" ", "none Static DHCP PPPoE PPTP"); // CarpDEV-DHCP");
foreach ($opts as $opt): ?>
<option <?php if ($opt == $pconfig['type']) echo "selected";?>>
<?=htmlspecialchars($opt);?>