mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-05 05:25:49 +01:00
Switch admin t.js usage to Benchpress
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
define('admin/general/dashboard', ['semver', 'Chart', 'translator'], function (semver, Chart, translator) {
|
||||
define('admin/general/dashboard', ['semver', 'Chart', 'translator', 'benchpress'], function (semver, Chart, translator, Benchpress) {
|
||||
var Admin = {};
|
||||
var intervals = {
|
||||
rooms: false,
|
||||
@@ -317,7 +317,7 @@ define('admin/general/dashboard', ['semver', 'Chart', 'translator'], function (s
|
||||
$('[data-action="updateGraph"][data-units="custom"]').on('click', function () {
|
||||
var targetEl = $(this);
|
||||
|
||||
templates.parse('admin/partials/pageviews-range-select', {}, function (html) {
|
||||
Benchpress.parse('admin/partials/pageviews-range-select', {}, function (html) {
|
||||
var modal = bootbox.dialog({
|
||||
title: '[[admin/general/dashboard:page-views-custom]]',
|
||||
message: html,
|
||||
|
||||
Reference in New Issue
Block a user