Skip to content

Commit

Permalink
Redirect signed in users from homepage to "My Events"
Browse files Browse the repository at this point in the history
  • Loading branch information
jmikola committed Aug 28, 2011
1 parent 9ecbaa5 commit aaab9be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions public/javascripts/twalks.js
Expand Up @@ -357,6 +357,11 @@
}); });
} }
, home: function() { , home: function() {
if ($('#navigation .user.menu.loggedIn').length) {
this.navigate('events/my', true);
return;
}

$('li.active', this.$navigation).removeClass('active'); $('li.active', this.$navigation).removeClass('active');


var self = this; var self = this;
Expand Down
2 changes: 1 addition & 1 deletion views/_navigation.ejs
Expand Up @@ -19,7 +19,7 @@
<img src="/images/loading.gif" /> <img src="/images/loading.gif" />
</li> </li>
<% if (everyauth.loggedIn) { %> <% if (everyauth.loggedIn) { %>
<li class="user menu"> <li class="user menu loggedIn">
<a href="javascript:void(0)" class="menu"> <a href="javascript:void(0)" class="menu">
<%= everyauth.twitter.user.name %> <%= everyauth.twitter.user.name %>
</a> </a>
Expand Down

0 comments on commit aaab9be

Please sign in to comment.