Added a helper function to load another page
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
23f9105550
commit
8cee8575e1
2
assets/coffee/archon.coffee
Normal file
2
assets/coffee/archon.coffee
Normal file
@ -0,0 +1,2 @@
|
||||
@loadPage = (pagePath) ->
|
||||
window.location.href = pagePath + '.html'
|
@ -21,10 +21,10 @@ loginForm = (event) ->
|
||||
localStorage.setItem('ldap_bind_pw', document.forms.loginForm.bind_pw.value)
|
||||
localStorage.setItem('ldap_base_dn', baseDn)
|
||||
|
||||
window.location.href = 'index.html'
|
||||
loadPage('index.html')
|
||||
return
|
||||
return
|
||||
|
||||
window.onload = ->
|
||||
document.getElementById('loginForm').addEventListener 'submit', loginForm
|
||||
document.getElementById('loginForm').addEventListener('submit', loginForm)
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user