Barış Soner Uşaklı 6 years ago
parent 587ec5e972
commit a5820b1ef3

@ -301,12 +301,12 @@ $(document).ready(function() {
}
function generateUserCard(ev) {
var avatar = $(this),
index = avatar.parents('[data-index]').attr('data-index'),
data = (ajaxify.data.topics || ajaxify.data.posts);
var avatar = $(this);
var uid = avatar.parents('[data-uid]').attr('data-uid');
var data = (ajaxify.data.topics || ajaxify.data.posts);
for (var i = 0, ii = data.length; i < ii; i++) {
if (parseInt(data[i].index, 10) === parseInt(index, 10)) {
if (parseInt(data[i].uid, 10) === parseInt(uid, 10)) {
data = data[i].user;
break;
}

Loading…
Cancel
Save