From acb36dda96a5cc060da566f9c35451834ceacd3f Mon Sep 17 00:00:00 2001 From: the_kellner Date: Mon, 18 Jun 2018 16:17:06 +0200 Subject: [PATCH] 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) => { --- js/contentloader.js | 2 +- segments/_register.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/contentloader.js b/js/contentloader.js index 00d96ff..aa4fad4 100644 --- a/js/contentloader.js +++ b/js/contentloader.js @@ -24,7 +24,7 @@ async function getNewUniqueLink() { } // -document.getElementById('btnCreate').addEventListener("click" , async (event) => { +document.getElementById('create-form').addEventListener("submit" , async (event) => { event.preventDefault(); const formData = new FormData(document.getElementById('create-form')); try { diff --git a/segments/_register.php b/segments/_register.php index 91e4ca1..2096e86 100644 --- a/segments/_register.php +++ b/segments/_register.php @@ -29,8 +29,8 @@
-╭∩╮(ಠ۝ಠ)╭∩╮ +