diff --git a/src/www/firewall_virtual_ip_edit.php b/src/www/firewall_virtual_ip_edit.php index cd35b0810..31d91b037 100644 --- a/src/www/firewall_virtual_ip_edit.php +++ b/src/www/firewall_virtual_ip_edit.php @@ -160,7 +160,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { } } if (!$carpvip_found) { - $input_errors[] = sprintf(gettext("VHID %s should be defined on interface %s."),$pconfig['vhid'], convert_friendly_interface_to_friendly_descr($pconfig['interface'])); + $input_errors[] = sprintf(gettext("VHID %s must be defined on interface %s as a CARP VIP first."),$pconfig['vhid'], convert_friendly_interface_to_friendly_descr($pconfig['interface'])); } } } @@ -247,13 +247,15 @@ $( document ).ready(function() { $("#noexpand").attr('disabled', true); $("#noexpandrow").addClass("hidden"); $("#vhid_none").attr('disabled', false); + $("#max_vhid").attr('disabled', true); + $("#vhid").val(""); switch ($(this).val()) { case "ipalias": $("#type").prop("selectedIndex",0); $("#vhid").attr('disabled', false); $("#subnet_bits").attr('disabled', false); - $("#typenote").html(""); + $("#typenote").html(""); break; case "carp": $("#type").prop("selectedIndex",0); @@ -266,19 +268,20 @@ $( document ).ready(function() { if ($("#vhid").val() == null) { $("#max_vhid").click(); } - $("#typenote").html(""); + $("#max_vhid").attr('disabled', false); + $("#typenote").html(""); break; case "proxyarp": $("#type").attr('disabled', false); $("#subnet_bits").attr('disabled', false); $("#noexpand").attr('disabled', false); $("#noexpandrow").removeClass("hidden"); - $("#typenote").html(""); + $("#typenote").html(""); break; case "other": $("#type").attr('disabled', false); $("#subnet_bits").attr('disabled', false); - $("#typenote").html(""); + $("#typenote").html(""); break; } // refresh selectpickers @@ -325,7 +328,7 @@ $( document ).ready(function() { @@ -421,8 +424,8 @@ $( document ).ready(function() { -