onload's a bitch

This commit is contained in:
flash 2015-03-29 20:51:31 +02:00
parent 4e76b89568
commit 50489ddcb5

View file

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