Fix function formatting in admin.js

This commit is contained in:
ukhan
2016-07-27 21:17:31 -07:00
parent 2fef36f15a
commit dced137f6f

View File

@@ -131,8 +131,12 @@ exports.populate_emoji = function (emoji_data) {
var emoji_table = $('#admin_emoji_table').expectOne(); var emoji_table = $('#admin_emoji_table').expectOne();
emoji_table.find('tr.emoji_row').remove(); emoji_table.find('tr.emoji_row').remove();
_.each(emoji_data, function (data, name) { _.each(emoji_data, function (data, name) {
emoji_table.append(templates.render('admin_emoji_list', {emoji: {name: name, source_url: data.source_url, emoji_table.append(templates.render('admin_emoji_list', {
display_url: data.display_url}})); emoji: {
name: name, source_url: data.source_url,
display_url: data.display_url
}
}));
}); });
loading.destroy_indicator($('#admin_page_emoji_loading_indicator')); loading.destroy_indicator($('#admin_page_emoji_loading_indicator'));
}; };