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:
the_kellner 2018-06-18 16:17:06 +02:00
parent 82ffca032f
commit acb36dda96
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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 -->