v1.18.x
psychobunny 9 years ago
parent f47f93f9bb
commit 30da4ac748

@ -1,5 +1,5 @@
"use strict";
/*global config, translator, componentHandler, define, socket, app, ajaxify, utils, bootbox, Slideout, NProgress, RELATIVE_PATH*/
/*global config, componentHandler, define, socket, app, ajaxify, utils, bootbox, Slideout, NProgress, RELATIVE_PATH*/
(function() {
var logoutTimer = 0;

@ -76,11 +76,13 @@ define('admin/appearance/themes', function() {
templates.parse('admin/partials/theme_list', {
themes: themes
}, function(html) {
require(['translator'], function(translator) {
translator.translate(html, function(html) {
instListEl.html(html);
highlightSelectedTheme(config['theme:id']);
});
});
});
}
});
};

@ -1,6 +1,6 @@
'use strict';
/* globals define, app, socket, templates, translator */
/* globals define, app, socket, templates */
define('forum/topic/flag', [], function() {
@ -34,8 +34,10 @@ define('forum/topic/flag', [], function() {
function parseModal(callback) {
templates.parse('partials/modals/flag_post_modal', {}, function(html) {
require(['translator'], function(translator) {
translator.translate(html, callback);
});
});
}
function flagPost(pid, reason) {

@ -1,6 +1,6 @@
'use strict';
/* globals define, app, socket, templates, translator */
/* globals define, app, socket, templates */
define('forum/topic/move', function() {
@ -46,6 +46,7 @@ define('forum/topic/move', function() {
function parseModal(categories, callback) {
templates.parse('partials/move_thread_modal', {categories: []}, function(html) {
require(['translator'], function(translator) {
translator.translate(html, function(html) {
modal = $(html);
categories.forEach(function(category) {
@ -56,6 +57,7 @@ define('forum/topic/move', function() {
callback();
});
});
});
}
function buildRecursive(parentEl, category, level) {

Loading…
Cancel
Save