diff options
author | raylu <raylu@mixpanel.com> | 2011-07-03 19:09:45 -0700 |
---|---|---|
committer | raylu <raylu@mixpanel.com> | 2011-07-03 19:09:45 -0700 |
commit | 497b1b6aa568946ecf68fdb6bbcacfdc5f6a4edb (patch) | |
tree | 690b3a9d39d253d1037623adea649b2dbe5aa6a1 /views/layouts | |
parent | eb14c4f17a758efe322c4386675fc79ba9e2a548 (diff) | |
download | otakuhub-497b1b6aa568946ecf68fdb6bbcacfdc5f6a4edb.tar.xz |
fix nav login box
Diffstat (limited to 'views/layouts')
-rw-r--r-- | views/layouts/default.html.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/views/layouts/default.html.php b/views/layouts/default.html.php index bb918ce..d734fed 100644 --- a/views/layouts/default.html.php +++ b/views/layouts/default.html.php @@ -42,7 +42,7 @@ use \lithium\security\Auth; else { $links['Sign up'] = '/users/signup'; - $links['Login'] = '#login'; + $links['Login'] = '/login'; // overwritten with JS echo ' <div id="login" style="display: none"> <h2>Login</h2> @@ -98,7 +98,10 @@ use \lithium\security\Auth; <script type="text/javascript" charset="utf-8"> $(document).ready(function(){ - $("a[rel^='prettyPhoto']").prettyPhoto(); + var login = $("a[href='/login']"); + login.attr('href', '#login'); + login.attr('title', ''); + login.prettyPhoto({deeplinking: false, social_tools: false}); }); </script> |