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