made it so that the create account button works with only persona enabled

This commit is contained in:
Rodney Ewing 2013-07-03 08:35:56 -07:00 committed by Christopher Allan Webber
parent e39b9cc60f
commit 20d4995d81
2 changed files with 6 additions and 1 deletions

View File

@ -22,6 +22,11 @@ $(document).ready(function () {
signinLink.onclick = function() { navigator.id.request(); };
}
var signinLink1 = document.getElementById('persona_login1');
if (signinLink1) {
signinLink1.onclick = function() { navigator.id.request(); };
}
var signoutLink = document.getElementById('logout');
if (signoutLink) {
signoutLink.onclick = function() { navigator.id.logout(); };

View File

@ -28,7 +28,7 @@
<p>{% trans %}Don't have one yet? It's easy!{% endtrans %}</p>
<a class="button_action_highlight" href=
{% if persona_auth is defined %}
"javascript:;" id="persona_login"
"javascript:;" id="persona_login1"
{% else %}
"{{ request.urlgen('mediagoblin.auth.register') }}"
{% endif %}