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

@@ -7,7 +7,8 @@ define('forum/topic/threadTools', [
'forum/topic/delete-posts',
'components',
'translator',
], function (fork, move, deletePosts, components, translator) {
'benchpress',
], function (fork, move, deletePosts, components, translator, Benchpress) {
var ThreadTools = {};
ThreadTools.init = function (tid) {
@@ -138,7 +139,7 @@ define('forum/topic/threadTools', [
return app.alertError(err);
}
templates.parse('partials/topic/topic-menu-list', data, function (html) {
Benchpress.parse('partials/topic/topic-menu-list', data, function (html) {
translator.translate(html, function (html) {
dropdownMenu.html(html);
$(window).trigger('action:topic.tools.load');