onload's a bitch
This commit is contained in:
parent
4e76b89568
commit
50489ddcb5
1 changed files with 4 additions and 1 deletions
|
@ -33,6 +33,9 @@
|
||||||
headerLoginForm.className = (headerLoginForm.className == 'hidden' ? '' : 'hidden');
|
headerLoginForm.className = (headerLoginForm.className == 'hidden' ? '' : 'hidden');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Execute initLoginForm() on load
|
||||||
|
window.onload = function(){initLoginForm();};
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
@ -49,7 +52,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="menu-ucp" id="navMenuUser">
|
<div class="menu-ucp" id="navMenuUser">
|
||||||
<!-- User menu, displayed on right side of the bar. -->
|
<!-- User menu, displayed on right side of the bar. -->
|
||||||
<a class="menu-item" id="headerLoginLink" onload="initLoginForm();" href="http://{{ sakura.urls.main }}/login" title="Login to Flashii">Login</a>
|
<a class="menu-item" id="headerLoginLink" href="http://{{ sakura.urls.main }}/login" title="Login to Flashii">Login</a>
|
||||||
<a class="menu-item" href="http://{{ sakura.urls.main }}/register" title="Create an account">Register</a>
|
<a class="menu-item" href="http://{{ sakura.urls.main }}/register" title="Create an account">Register</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="menu-mob">
|
<div class="menu-mob">
|
||||||
|
|
Reference in a new issue