Bug 33104: Add email validation

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2023-04-11 11:59:04 +02:00 committed by Tomas Cohen Arazi
parent 99e19c60ee
commit e5e4279a04
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 6 additions and 0 deletions

View File

@ -617,6 +617,12 @@
});
nodes.append(`<button onclick="add_interface();" class="btn btn-default"><i class="fa fa-plus"></i> ` + _("Add another interface") + '</button>')
$("#interfaces").replaceWith(nodes);
interfaces.forEach((interface, i) => {
$("#interface_account_email_" + i).rules("add", {
email: true,
});
});
}
var Sticky;