mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-02 10:31:23 +01:00
linting and moving xregexp back to .js
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
/* global socket, define, templates, bootbox, app, ajaxify, */
|
||||
define(function() {
|
||||
var Users = {};
|
||||
|
||||
@@ -192,7 +194,7 @@ define(function() {
|
||||
|
||||
templates.preload_template('admin/users', function() {
|
||||
templates['admin/users'].parse({users:[]});
|
||||
var html = templates.prepare(templates['admin/users'].blocks['users']).parse({
|
||||
var html = templates.prepare(templates['admin/users'].blocks.users).parse({
|
||||
users: data.users
|
||||
}),
|
||||
userListEl = document.querySelector('.users');
|
||||
@@ -225,7 +227,7 @@ define(function() {
|
||||
function onUsersLoaded(users) {
|
||||
templates.preload_template('admin/users', function() {
|
||||
templates['admin/users'].parse({users:[]});
|
||||
var html = templates.prepare(templates['admin/users'].blocks['users']).parse({
|
||||
var html = templates.prepare(templates['admin/users'].blocks.users).parse({
|
||||
users: users
|
||||
});
|
||||
html = $(html);
|
||||
|
||||
@@ -238,7 +238,7 @@ var fs = require('fs'),
|
||||
'vendor/requirejs/require.js',
|
||||
'vendor/bootbox/bootbox.min.js',
|
||||
'vendor/tinycon/tinycon.js',
|
||||
'vendor/xregexp/xregexp.min.js',
|
||||
'vendor/xregexp/xregexp.js',
|
||||
'vendor/xregexp/unicode/unicode-base.js',
|
||||
'src/app.js',
|
||||
'src/templates.js',
|
||||
|
||||
Reference in New Issue
Block a user