Remove debug/console.log statements

This commit is contained in:
Nathan Leniz
2015-03-09 06:58:08 +09:00
parent 53b0e8d600
commit 7a56d4fcb2
5 changed files with 0 additions and 11 deletions

View File

@ -38,7 +38,6 @@ module.exports = {
debug('User err: ', err); debug('User err: ', err);
next(err); next(err);
} }
console.log('user count', users.length);
Challenge.find({}, function (err, challenges) { Challenge.find({}, function (err, challenges) {
if (err) { if (err) {
debug('User err: ', err); debug('User err: ', err);

View File

@ -143,8 +143,6 @@ $(document).ready(function() {
.done(function (data, textStatus, xhr) { .done(function (data, textStatus, xhr) {
$('#storyRank').text(data.rank); $('#storyRank').text(data.rank);
}); });
} else {
console.log('Can\'t upvote because you\'ve already upvoted');
} }
}; };
$('#upvote').on('click', upvoteHandler); $('#upvote').on('click', upvoteHandler);
@ -154,7 +152,6 @@ $(document).ready(function() {
var link = $('#story-url').val(); var link = $('#story-url').val();
var headline = $('#story-title').val(); var headline = $('#story-title').val();
var description = $('#description-box').val(); var description = $('#description-box').val();
console.log(link, headline, description);
var userDataForUpvote = { var userDataForUpvote = {
upVotedBy: user._id, upVotedBy: user._id,
upVotedByUsername: user.profile.username upVotedByUsername: user.profile.username
@ -193,7 +190,6 @@ $(document).ready(function() {
var commentSubmitButtonHandler = function commentSubmitButtonHandler() { var commentSubmitButtonHandler = function commentSubmitButtonHandler() {
$('comment-button').unbind('click'); $('comment-button').unbind('click');
var data = $('#comment-box').val(); var data = $('#comment-box').val();
console.log('comment clicked');
$('#comment-button').attr('disabled', 'disabled'); $('#comment-button').attr('disabled', 'disabled');
$.post('/stories/comment/', $.post('/stories/comment/',

View File

@ -14,7 +14,6 @@
type: 'GET', type: 'GET',
url: '/stories/comments/' + comment, url: '/stories/comments/' + comment,
error: function (xhr, textStatus, errorThrown) { error: function (xhr, textStatus, errorThrown) {
console.log('got error');
commentDetails = { commentDetails = {
error: true, error: true,
body: 'There seems to be a problem fetching this comment.' body: 'There seems to be a problem fetching this comment.'
@ -22,7 +21,6 @@
}, },
success: function (data, textStatus, xhr) { success: function (data, textStatus, xhr) {
commentDetails = data; commentDetails = data;
console.log(commentDetails.commentOn);
var div = document.createElement('div'); var div = document.createElement('div');
$(div) $(div)
.html( .html(

View File

@ -15,14 +15,12 @@
script. script.
$('#story-url').on('keypress', function(e) { $('#story-url').on('keypress', function(e) {
if (e.which === 13 || e === 13) { if (e.which === 13 || e === 13) {
console.log('enter pressed');
$('#preliminary-story-submit').click(); $('#preliminary-story-submit').click();
} }
}); });
var preliminaryStorySubmit = function preliminaryStorySubmit() { var preliminaryStorySubmit = function preliminaryStorySubmit() {
var storyURL = $('#story-url').val(); var storyURL = $('#story-url').val();
console.log(storyURL);
$('#preliminary-story-submit').attr('disabled', 'disabled'); $('#preliminary-story-submit').attr('disabled', 'disabled');
$.post('/stories/preliminary', $.post('/stories/preliminary',

View File

@ -21,7 +21,6 @@ script.
}); });
function executeSearch() { function executeSearch() {
$('#stories').empty(); $('#stories').empty();
console.log('clicked or enter button');
var searchTerm = $('#searchArea').val(); var searchTerm = $('#searchArea').val();
var getLinkedName = function getLinkedName(name) { var getLinkedName = function getLinkedName(name) {
return name.toLowerCase().replace(/\s/g, '-'); return name.toLowerCase().replace(/\s/g, '-');
@ -33,7 +32,6 @@ script.
} }
}) })
.fail(function (xhr, textStatus, errorThrown) { .fail(function (xhr, textStatus, errorThrown) {
console.log('failure');
}) })
.done(function (data, textStatus, xhr) { .done(function (data, textStatus, xhr) {
for (var i = 0; i < data.length; i++) { for (var i = 0; i < data.length; i++) {