From 20d4995d810ce7c7dc0d9453508507cbaa6fdce6 Mon Sep 17 00:00:00 2001 From: Rodney Ewing Date: Wed, 3 Jul 2013 08:35:56 -0700 Subject: [PATCH] made it so that the create account button works with only persona enabled --- mediagoblin/plugins/persona/static/js/persona.js | 5 +++++ .../templates/mediagoblin/bits/frontpage_welcome.html | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/mediagoblin/plugins/persona/static/js/persona.js b/mediagoblin/plugins/persona/static/js/persona.js index 034f2574..a1d0172f 100644 --- a/mediagoblin/plugins/persona/static/js/persona.js +++ b/mediagoblin/plugins/persona/static/js/persona.js @@ -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(); }; diff --git a/mediagoblin/templates/mediagoblin/bits/frontpage_welcome.html b/mediagoblin/templates/mediagoblin/bits/frontpage_welcome.html index dbc23a1f..9ac63a56 100644 --- a/mediagoblin/templates/mediagoblin/bits/frontpage_welcome.html +++ b/mediagoblin/templates/mediagoblin/bits/frontpage_welcome.html @@ -28,7 +28,7 @@

{% trans %}Don't have one yet? It's easy!{% endtrans %}