diff --git a/controllers/resources.js b/controllers/resources.js index 22efac5bb4..781982fb0a 100644 --- a/controllers/resources.js +++ b/controllers/resources.js @@ -38,7 +38,6 @@ module.exports = { debug('User err: ', err); next(err); } - console.log('user count', users.length); Challenge.find({}, function (err, challenges) { if (err) { debug('User err: ', err); diff --git a/public/js/main.js b/public/js/main.js index 22c2f0751c..64a90ce2d2 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -143,8 +143,6 @@ $(document).ready(function() { .done(function (data, textStatus, xhr) { $('#storyRank').text(data.rank); }); - } else { - console.log('Can\'t upvote because you\'ve already upvoted'); } }; $('#upvote').on('click', upvoteHandler); @@ -154,7 +152,6 @@ $(document).ready(function() { var link = $('#story-url').val(); var headline = $('#story-title').val(); var description = $('#description-box').val(); - console.log(link, headline, description); var userDataForUpvote = { upVotedBy: user._id, upVotedByUsername: user.profile.username @@ -193,7 +190,6 @@ $(document).ready(function() { var commentSubmitButtonHandler = function commentSubmitButtonHandler() { $('comment-button').unbind('click'); var data = $('#comment-box').val(); - console.log('comment clicked'); $('#comment-button').attr('disabled', 'disabled'); $.post('/stories/comment/', diff --git a/views/stories/comments.jade b/views/stories/comments.jade index 83f9f9f75f..a7b488de60 100644 --- a/views/stories/comments.jade +++ b/views/stories/comments.jade @@ -14,7 +14,6 @@ type: 'GET', url: '/stories/comments/' + comment, error: function (xhr, textStatus, errorThrown) { - console.log('got error'); commentDetails = { error: true, body: 'There seems to be a problem fetching this comment.' @@ -22,7 +21,6 @@ }, success: function (data, textStatus, xhr) { commentDetails = data; - console.log(commentDetails.commentOn); var div = document.createElement('div'); $(div) .html( diff --git a/views/stories/preliminary-submit.jade b/views/stories/preliminary-submit.jade index 293445f2c5..d625b8c7ad 100644 --- a/views/stories/preliminary-submit.jade +++ b/views/stories/preliminary-submit.jade @@ -15,14 +15,12 @@ script. $('#story-url').on('keypress', function(e) { if (e.which === 13 || e === 13) { - console.log('enter pressed'); $('#preliminary-story-submit').click(); } }); var preliminaryStorySubmit = function preliminaryStorySubmit() { var storyURL = $('#story-url').val(); - console.log(storyURL); $('#preliminary-story-submit').attr('disabled', 'disabled'); $.post('/stories/preliminary', diff --git a/views/stories/search-stories.jade b/views/stories/search-stories.jade index 8a56a0664d..584c918561 100644 --- a/views/stories/search-stories.jade +++ b/views/stories/search-stories.jade @@ -21,7 +21,6 @@ script. }); function executeSearch() { $('#stories').empty(); - console.log('clicked or enter button'); var searchTerm = $('#searchArea').val(); var getLinkedName = function getLinkedName(name) { return name.toLowerCase().replace(/\s/g, '-'); @@ -33,7 +32,6 @@ script. } }) .fail(function (xhr, textStatus, errorThrown) { - console.log('failure'); }) .done(function (data, textStatus, xhr) { for (var i = 0; i < data.length; i++) {