Merge branch 'jameskopacz-patch-259' of https://github.com/jameskopacz/freecodecamp into ux-improvements

This commit is contained in:
Michael Q Larson
2015-03-29 14:19:12 -07:00
4 changed files with 13 additions and 3 deletions

View File

@@ -154,6 +154,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;