Skip to content
Browse files

Redirect signed in users from homepage to "My Events"

  • Loading branch information...
1 parent 9ecbaa5 commit aaab9bedeb7eb1e83b9258b0012d898ea18b3285 @jmikola jmikola committed
Showing with 6 additions and 1 deletion.
  1. +5 −0 public/javascripts/twalks.js
  2. +1 −1 views/_navigation.ejs
View
5 public/javascripts/twalks.js
@@ -357,6 +357,11 @@
});
}
, home: function() {
+ if ($('#navigation .user.menu.loggedIn').length) {
+ this.navigate('events/my', true);
+ return;
+ }
+
$('li.active', this.$navigation).removeClass('active');
var self = this;
View
2 views/_navigation.ejs
@@ -19,7 +19,7 @@
<img src="/images/loading.gif" />
</li>
<% if (everyauth.loggedIn) { %>
- <li class="user menu">
+ <li class="user menu loggedIn">
<a href="javascript:void(0)" class="menu">
<%= everyauth.twitter.user.name %>
</a>

0 comments on commit aaab9be

Please sign in to comment.
Something went wrong with that request. Please try again.