Bug Fixing
This commit is contained in:
parent
2ae902aba2
commit
a04431032a
1 changed files with 18 additions and 1 deletions
|
@ -101,12 +101,29 @@
|
||||||
Les deux mots de passe entrés ne correspondent pas.
|
Les deux mots de passe entrés ne correspondent pas.
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
<button type="submit" class="btn btn-primary">Créer le compte</button>
|
<button type="submit" class="btn btn-primary" onClick="ValidateEmail(document.getElementById('othermailbox'))">Créer le compte</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script lang="javascript">
|
<script lang="javascript">
|
||||||
|
function ValidateEmail(inputControl)
|
||||||
|
{
|
||||||
|
var mailformat = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
|
||||||
|
if(inputText.value.match(mailformat))
|
||||||
|
{
|
||||||
|
alert("Merci de renseigner un courriel de secours svp");
|
||||||
|
inputControl.focus();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
alert("Merci de renseigner un courriel de secours svp");
|
||||||
|
inputControl.focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function changeGivenNameOrSurname () {
|
function changeGivenNameOrSurname () {
|
||||||
givenname = document.getElementById("givenname");
|
givenname = document.getElementById("givenname");
|
||||||
surname = document.getElementById("surname");
|
surname = document.getElementById("surname");
|
||||||
|
|
Loading…
Reference in a new issue