diff --git a/dist/js/main.js b/dist/js/main.js
index b9f9eb5..b4a3660 100644
--- a/dist/js/main.js
+++ b/dist/js/main.js
@@ -484,33 +484,33 @@ function switchMode(operatingMode) {
if (subnetMap !== null) {
if (validateSubnetSizes(subnetMap, minSubnetSizes[operatingMode])) {
-
+
renderTable(operatingMode);
set_usable_ips_title(operatingMode);
- $('#netsize').attr("pattern",netsizePatterns[operatingMode]);
+ $('#netsize').attr('pattern', netsizePatterns[operatingMode]);
$('#input_form').removeClass('was-validated');
- $('#input_form').rules("remove", "netsize");
+ $('#input_form').rules('remove', 'netsize');
switch (operatingMode) {
case 'AWS':
- var validate_error_message = "AWS Mode - Smallest size is /" + minSubnetSizes[operatingMode]
+ var validate_error_message = 'AWS Mode - Smallest size is /' + minSubnetSizes[operatingMode]
break;
case 'AZURE':
- var validate_error_message = "Azure Mode - Smallest size is /" + minSubnetSizes[operatingMode]
+ var validate_error_message = 'Azure Mode - Smallest size is /' + minSubnetSizes[operatingMode]
break;
default:
- var validate_error_message = "Smallest size is /" + minSubnetSizes[operatingMode]
+ var validate_error_message = 'Smallest size is /' + minSubnetSizes[operatingMode]
break;
}
// Modify jquery validation rule
- $('#input_form #netsize').rules("add", {
+ $('#input_form #netsize').rules('add', {
required: true,
pattern: netsizePatterns[operatingMode],
messages: {
- required: "Please enter a network size",
+ required: 'Please enter a network size',
pattern: validate_error_message
}
});
@@ -527,7 +527,7 @@ function switchMode(operatingMode) {
var modal_error_message = 'One or more subnets are smaller than the minimum allowed for Azure.
The smallest size allowed is /' + minSubnetSizes[operatingMode] + '.
See: Azure Virtual Network FAQ > How small and how large can virtual networks and subnets be?'
break;
default:
- var validate_error_message = "Unknown Error"
+ var validate_error_message = 'Unknown Error'
break;
}
show_warning_modal('