made it so that the create account button works with only persona enabled
authorRodney Ewing <ewing.rj@gmail.com>
Wed, 3 Jul 2013 15:35:56 +0000 (08:35 -0700)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 3 Jul 2013 20:07:52 +0000 (15:07 -0500)
mediagoblin/plugins/persona/static/js/persona.js
mediagoblin/templates/mediagoblin/bits/frontpage_welcome.html

index 034f2574d6c8f419ab7fecc75d63147f59f07b1f..a1d0172f919c0616b88d7dc5f9c9df929ec5081f 100644 (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(); };
index dbc23a1fa9707d40aa9d35a5f76eab792e6b842e..9ac63a562cb599f56cf6f33aece021a52c331c7c 100644 (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 %}