|
|
@ -1,6 +1,6 @@
|
|
|
|
"use strict";
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
|
|
|
/*globals ajaxify, config, utils, templates, app, socket, Slideout, NProgress*/
|
|
|
|
/*globals ajaxify, config, utils, app, socket, Slideout, NProgress*/
|
|
|
|
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
$(document).ready(function() {
|
|
|
|
setupNProgress();
|
|
|
|
setupNProgress();
|
|
|
@ -176,7 +176,7 @@ $(document).ready(function() {
|
|
|
|
data = (ajaxify.data.topics || ajaxify.data.posts)[index].user;
|
|
|
|
data = (ajaxify.data.topics || ajaxify.data.posts)[index].user;
|
|
|
|
|
|
|
|
|
|
|
|
socket.emit('user.isFollowing', {uid: data.uid}, function(err, isFollowing) {
|
|
|
|
socket.emit('user.isFollowing', {uid: data.uid}, function(err, isFollowing) {
|
|
|
|
templates.parse('modules/usercard', data, function(html) {
|
|
|
|
app.parseAndTranslate('modules/usercard', data, function(html) {
|
|
|
|
var card = $(html);
|
|
|
|
var card = $(html);
|
|
|
|
avatar.parents('a').after(card.hide());
|
|
|
|
avatar.parents('a').after(card.hide());
|
|
|
|
|
|
|
|
|
|
|
|