mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix userId reference const declaration
This commit is contained in:
parent
170750466c
commit
bdb3e94f41
@ -363,6 +363,7 @@ data['lang']) }}{% end %}
|
||||
|
||||
{% block js %}
|
||||
<script>
|
||||
const userId = new URLSearchParams(document.location.search).get('id');
|
||||
function submit_user(event) {
|
||||
if (!validateForm()) {
|
||||
event.preventDefault();
|
||||
@ -399,8 +400,6 @@ data['lang']) }}{% end %}
|
||||
}
|
||||
}
|
||||
$("#user_form").on("submit", async function (e) {
|
||||
const userId = new URLSearchParams(document.location.search).get('id');
|
||||
console.log(userId)
|
||||
e.preventDefault();
|
||||
let password = null;
|
||||
if(!userId){
|
||||
|
Loading…
Reference in New Issue
Block a user