Remove debug/console.log statements
parent
53b0e8d600
commit
7a56d4fcb2
|
@ -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);
|
||||
|
|
|
@ -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/',
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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++) {
|
||||
|
|
Loading…
Reference in New Issue