Switch client t.js usage to Benchpress

This commit is contained in:
Peter Jaszkowiak
2017-08-30 11:31:15 -06:00
parent dc3f89a505
commit 71aab79a9a
13 changed files with 37 additions and 31 deletions

View File

@@ -8,7 +8,8 @@ define('forum/chats', [
'forum/chats/recent',
'forum/chats/search',
'forum/chats/messages',
], function (components, translator, mousetrap, recentChats, search, messages) {
'benchpress',
], function (components, translator, mousetrap, recentChats, search, messages, Benchpress) {
var Chats = {
initialised: false,
};
@@ -366,7 +367,7 @@ define('forum/chats', [
roomEl.addClass('unread');
} else {
var recentEl = components.get('chat/recent');
templates.parse('partials/chats/recent_room', {
Benchpress.parse('partials/chats/recent_room', {
rooms: {
roomId: data.roomId,
lastUser: data.message.fromUser,