|
|
@ -76,9 +76,7 @@ define('forum/users', function() {
|
|
|
|
return !$('.users-box[data-uid="' + user.uid + '"]').length;
|
|
|
|
return !$('.users-box[data-uid="' + user.uid + '"]').length;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
ajaxify.loadTemplate('users', function(usersTemplate) {
|
|
|
|
templates.parse('users', 'users', {users: users}, function(html) {
|
|
|
|
var html = templates.parse(templates.getBlock(usersTemplate, 'users'), {users: users});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
translator.translate(html, function(translated) {
|
|
|
|
translator.translate(html, function(translated) {
|
|
|
|
$('#users-container').append(translated);
|
|
|
|
$('#users-container').append(translated);
|
|
|
|
$('#users-container .anon-user').appendTo($('#users-container'));
|
|
|
|
$('#users-container .anon-user').appendTo($('#users-container'));
|
|
|
@ -128,11 +126,10 @@ define('forum/users', function() {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ajaxify.loadTemplate('users', function(usersTemplate) {
|
|
|
|
templates.parse('users', 'users', data, function(html) {
|
|
|
|
var html = templates.parse(templates.getBlock(usersTemplate, 'users'), data);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
translator.translate(html, function(translated) {
|
|
|
|
translator.translate(html, function(translated) {
|
|
|
|
$('#users-container').html(translated);
|
|
|
|
$('#users-container').html(translated);
|
|
|
|
|
|
|
|
|
|
|
|
if (!data.users.length) {
|
|
|
|
if (!data.users.length) {
|
|
|
|
translator.translate('[[error:no-user]]', function(translated) {
|
|
|
|
translator.translate('[[error:no-user]]', function(translated) {
|
|
|
|
notify.html(translated);
|
|
|
|
notify.html(translated);
|
|
|
|