mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
removed console.logs
This commit is contained in:
@@ -36,6 +36,7 @@ var socket,
|
||||
$('#disconnect-modal').show();
|
||||
$('#reload-button').on('click',function(){
|
||||
$('#disconnect-modal').hide();
|
||||
console.log(window.location.href);
|
||||
window.location.reload();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -101,8 +101,6 @@ var user = require('./../user.js'),
|
||||
var allowedTypes = ['image/png', 'image/jpeg', 'image/jpg', 'image/gif'];
|
||||
var type = req.files.userPhoto.type;
|
||||
|
||||
console.log(req.files.userPhoto);
|
||||
|
||||
if(allowedTypes.indexOf(type) === -1) {
|
||||
res.send({
|
||||
error: 'Allowed image types are png, jpg and gif!'
|
||||
@@ -284,9 +282,9 @@ var user = require('./../user.js'),
|
||||
|
||||
user.getUserData(uid, function(data) {
|
||||
if(data) {
|
||||
console.log(data.joindate);
|
||||
|
||||
data.joindate = utils.relativeTime(data.joindate);
|
||||
console.log(data.joindate);
|
||||
|
||||
if(!data.birthday)
|
||||
data.age = '';
|
||||
else
|
||||
|
||||
@@ -80,7 +80,7 @@ var config = require('../config.js'),
|
||||
for(var i=0,ii=fields.length; i<ii; ++i) {
|
||||
key = fields[i];
|
||||
if(data[key] !== undefined) {
|
||||
console.log(data[key]);
|
||||
|
||||
User.setUserField(uid, key, data[key]);
|
||||
|
||||
if(key === 'email') {
|
||||
|
||||
Reference in New Issue
Block a user