so spaces and tabs are totally differnt...whitespace fixes

This commit is contained in:
MrRenter
2015-03-17 03:20:07 -04:00
parent 1320a14851
commit 2d5b34802b
2 changed files with 10 additions and 11 deletions

View File

@ -139,16 +139,15 @@ exports.returnIndividualStory = function(req, res, next) {
var userVoted = false;
try {
var votedObj = story.upVotes.filter(function(a){
return a['upVotedByUsername'] === req.user['profile']['username'];
})
if (votedObj.length > 0){
userVoted = true;
}
} catch(err){
userVoted = false;
}
var votedObj = story.upVotes.filter(function(a){
return a['upVotedByUsername'] === req.user['profile']['username'];
})
if (votedObj.length > 0){
userVoted = true;
}
} catch(err){
userVoted = false;
}
res.render('stories/index', {
title: story.headline,
link: story.link,

View File

@ -121,7 +121,7 @@ $(document).ready(function() {
var upvoteHandler = function () {
$(".ion-arrow-up-b").hide();
var _id = storyId;
var _id = storyId;
$('#upvote').unbind('click');
var alreadyUpvoted = false;
for (var i = 0; i < upVotes.length; i++) {