Remove debug/console.log statements

pull/166/head
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);
next(err);
}
console.log('user count', users.length);
Challenge.find({}, function (err, challenges) {
if (err) {
debug('User err: ', err);

View File

@ -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/',

View File

@ -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(

View File

@ -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',

View File

@ -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++) {