Skip to content

Commit 17358cc

Browse files
committed
bug 13271: Fix zone wizard vlan range validation
status 13271: resolved fixed
1 parent 414c55c commit 17358cc

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

ui/scripts/ui-custom/zoneWizard.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,8 @@
560560
.attr({ id: networkID })
561561
.append($form)
562562
);
563+
564+
$form.validate();
563565
});
564566

565567
$tabs.find('li:first').addClass('first');
@@ -937,7 +939,7 @@
937939
if ($target.closest('div.button.next').size()) {
938940
var $step = $steps.filter(':visible');
939941
// Validation
940-
var $form = $step.find('form').filter(function() {
942+
var $form = $('form:visible').filter(function() {
941943
// Don't include multi-edit (validation happens separately)
942944
return !$(this).closest('.multi-edit').size();
943945
});

ui/scripts/zoneWizard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@
353353
vlanRange: {
354354
label: 'VLAN Range',
355355
range: ['vlanRangeStart', 'vlanRangeEnd'],
356-
validation: { required: true }
356+
validation: { required: true, digits: true }
357357
}
358358
//Advanced (end)
359359
}

0 commit comments

Comments
 (0)