diff --git a/lib/persona.js b/lib/persona.js index 40613f0..3f1aff6 100644 --- a/lib/persona.js +++ b/lib/persona.js @@ -1,6 +1,6 @@ "use strict"; -/*globals ajaxify, config, utils, templates, app, socket, Slideout, NProgress*/ +/*globals ajaxify, config, utils, app, socket, Slideout, NProgress*/ $(document).ready(function() { setupNProgress(); @@ -176,7 +176,7 @@ $(document).ready(function() { data = (ajaxify.data.topics || ajaxify.data.posts)[index].user; socket.emit('user.isFollowing', {uid: data.uid}, function(err, isFollowing) { - templates.parse('modules/usercard', data, function(html) { + app.parseAndTranslate('modules/usercard', data, function(html) { var card = $(html); avatar.parents('a').after(card.hide()); diff --git a/templates/modules/usercard.tpl b/templates/modules/usercard.tpl index b98396e..eb2bc11 100644 --- a/templates/modules/usercard.tpl +++ b/templates/modules/usercard.tpl @@ -15,11 +15,11 @@