mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
bug 12651: Make new network name field required
status 12651: resolved fixed
This commit is contained in:
parent
e9987ecb15
commit
ceb95cb002
@ -4928,6 +4928,10 @@ label.error {
|
||||
margin: 0 0 0 11px;
|
||||
}
|
||||
|
||||
.multi-wizard.instance-wizard .select-network .select.new-network label.error {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.multi-wizard.instance-wizard .select-network .select.new-network .secondary-input {
|
||||
width: 97px;
|
||||
padding: 13px 0 17px;
|
||||
|
||||
@ -236,7 +236,7 @@
|
||||
<div class="field name hide-if-unselected">
|
||||
<div class="name">Name</div>
|
||||
<div class="value">
|
||||
<input type="text" name="new-network-name" />
|
||||
<input type="text" class="required" name="new-network-name" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@ -583,7 +583,11 @@
|
||||
|
||||
// Next button
|
||||
if ($target.closest('div.button.next').size()) {
|
||||
if (!$form.valid()) return false;
|
||||
if (!$form.valid()) {
|
||||
if ($form.find('input.error:visible, select.error:visible').size()) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
showStep($steps.filter(':visible').index() + 2);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user