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

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

Loading…
Cancel
Save