FIX: problems with validation -> (segments/_register.php , js/contentloader.js)
Changes in js/contentloader.js: -document.getElementById('btnCreate').addEventListener("click" , async (event) => { document.getElementById('create-form').addEventListener("submit" , async (event) => {
This commit is contained in:
parent
82ffca032f
commit
acb36dda96
@ -24,7 +24,7 @@ async function getNewUniqueLink() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//<!--Register-->
|
//<!--Register-->
|
||||||
document.getElementById('btnCreate').addEventListener("click" , async (event) => {
|
document.getElementById('create-form').addEventListener("submit" , async (event) => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
const formData = new FormData(document.getElementById('create-form'));
|
const formData = new FormData(document.getElementById('create-form'));
|
||||||
try {
|
try {
|
||||||
|
@ -29,8 +29,8 @@
|
|||||||
<input type="text" class="form-control" name="registerMail" aria-label="Small" aria-describedby="inputGroup-sizing-sm" required>
|
<input type="text" class="form-control" name="registerMail" aria-label="Small" aria-describedby="inputGroup-sizing-sm" required>
|
||||||
</div>
|
</div>
|
||||||
<hr />
|
<hr />
|
||||||
╭∩╮(ಠಠ)╭∩╮
|
|
||||||
<button id="btnCreate" type="submit" style="float: right;" class="btn btn-primary">Create Account</button>
|
<button id="btnCreate" type="submit" style="float: right;" class="btn btn-primary">Create Account</button>
|
||||||
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div> <!-- Ende container login -->
|
</div> <!-- Ende container login -->
|
||||||
|
Loading…
Reference in New Issue
Block a user