Stories reply and upvote redirect to signin when user isn't signed in.

Redirects user back to story after signing in.
This commit is contained in:
jameskopacz
2015-03-28 00:16:48 -05:00
parent e915e74b8d
commit d3dee00df5
4 changed files with 13 additions and 3 deletions

View File

@@ -135,6 +135,10 @@ $(document).ready(function() {
});
var upvoteHandler = function () {
if (typeof user == "undefined" || !user) {
window.location.href = '/signin';
return;
}
var _id = storyId;
$('#upvote').unbind('click');
var alreadyUpvoted = false;