diff js/modules/app.js @ 56:4728c2db6fd6

changed 'Log In' to 'Authenticate' if user is logged in but unauthenticated.
author Atul Varma <avarma@mozilla.com>
date Sun, 25 Apr 2010 00:06:17 -0700
parents cd51aebfbf68
children f9001601bed6
line wrap: on
line diff
--- a/js/modules/app.js	Sat Apr 24 23:50:23 2010 -0700
+++ b/js/modules/app.js	Sun Apr 25 00:06:17 2010 -0700
@@ -70,15 +70,18 @@
         "no-login": false,
         "login": false,
         "auth-login": false,
-        "no-auth": false
+        "no-auth": false,
+        "no-auth-login": false
       };
 
       if (user.isLoggedIn) {
         show["login"] = true;
         if (user.isAuthenticated)
           show["auth-login"] = true;
-        else
+        else {
           show["no-auth"] = true;
+          show["no-auth-login"] = true;
+        }
       } else {
         show["no-login"] = true;
         show["no-auth"] = true;