and I actually tested every single one. go me!
v1.18.x
psychobunny 10 years ago
parent c787cd671b
commit 4cbb7e9832

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

Loading…
Cancel
Save