From 9f280e320d9a27f4757ac3f473aa36048e33112d Mon Sep 17 00:00:00 2001 From: Konstantyn Pahsura Date: Wed, 2 Nov 2016 16:58:43 +0200 Subject: [PATCH] _.template removed --- modules/UI/side_pannels/chat/Chat.js | 18 +++++++++--------- .../contactlist/ContactListView.js | 14 +++++++------- modules/UI/side_pannels/profile/Profile.js | 13 +++++++------ .../UI/side_pannels/settings/SettingsMenu.js | 13 +++++++------ 4 files changed, 30 insertions(+), 28 deletions(-) diff --git a/modules/UI/side_pannels/chat/Chat.js b/modules/UI/side_pannels/chat/Chat.js index 5bb7c3d80..60743a87d 100644 --- a/modules/UI/side_pannels/chat/Chat.js +++ b/modules/UI/side_pannels/chat/Chat.js @@ -1,4 +1,4 @@ -/* global APP, $, _ */ +/* global APP, $ */ import {processReplacements, linkify} from './Replacement'; import CommandsProcessor from './Commands'; @@ -10,8 +10,9 @@ import UIEvents from '../../../../service/UI/UIEvents'; import { smileys } from './smileys'; -const sidePannelsContainerId = 'sideToolbarContainer'; -const compiledTpl = _.template(` +let unreadMessages = 0; +const sidePanelsContainerId = 'sideToolbarContainer'; +const htmlStr = `
@@ -31,13 +32,12 @@ const compiledTpl = _.template(`
- `); -function initHTML() { - $(`#${sidePannelsContainerId}`) - .append(compiledTpl()); -} + `; -var unreadMessages = 0; +function initHTML() { + $(`#${sidePanelsContainerId}`) + .append(htmlStr); +} /** * The container id, which is and the element id. diff --git a/modules/UI/side_pannels/contactlist/ContactListView.js b/modules/UI/side_pannels/contactlist/ContactListView.js index e3c136aa2..94a6dd2b9 100644 --- a/modules/UI/side_pannels/contactlist/ContactListView.js +++ b/modules/UI/side_pannels/contactlist/ContactListView.js @@ -1,21 +1,21 @@ -/* global $, APP, interfaceConfig, _ */ +/* global $, APP, interfaceConfig */ import Avatar from '../../avatar/Avatar'; import UIEvents from '../../../../service/UI/UIEvents'; import UIUtil from '../../util/UIUtil'; -const sidePannelsContainerId = 'sideToolbarContainer'; -const compiledTpl = _.template(` +let numberOfContacts = 0; +const sidePanelsContainerId = 'sideToolbarContainer'; +const htmlStr = `
-
`); + `; function initHTML() { - $(`#${sidePannelsContainerId}`) - .append(compiledTpl()); + $(`#${sidePanelsContainerId}`) + .append(htmlStr); } -let numberOfContacts = 0; /** * Updates the number of participants in the contact list button and sets diff --git a/modules/UI/side_pannels/profile/Profile.js b/modules/UI/side_pannels/profile/Profile.js index 1efc63f45..0147aca52 100644 --- a/modules/UI/side_pannels/profile/Profile.js +++ b/modules/UI/side_pannels/profile/Profile.js @@ -1,10 +1,10 @@ -/* global $, _ */ +/* global $ */ import UIUtil from "../../util/UIUtil"; import UIEvents from "../../../../service/UI/UIEvents"; import Settings from '../../../settings/Settings'; -const sidePannelsContainerId = 'sideToolbarContainer'; -const compiledTpl = _.template(` +const sidePanelsContainerId = 'sideToolbarContainer'; +const htmlStr = `
@@ -31,10 +31,11 @@ const compiledTpl = _.template(`
-
`); + `; + function initHTML() { - $(`#${sidePannelsContainerId}`) - .append(compiledTpl()); + $(`#${sidePanelsContainerId}`) + .append(htmlStr); } export default { diff --git a/modules/UI/side_pannels/settings/SettingsMenu.js b/modules/UI/side_pannels/settings/SettingsMenu.js index 6f68e810b..3daded142 100644 --- a/modules/UI/side_pannels/settings/SettingsMenu.js +++ b/modules/UI/side_pannels/settings/SettingsMenu.js @@ -1,12 +1,12 @@ -/* global $, _, APP, AJS, interfaceConfig, JitsiMeetJS */ +/* global $, APP, AJS, interfaceConfig, JitsiMeetJS */ import UIUtil from "../../util/UIUtil"; import UIEvents from "../../../../service/UI/UIEvents"; import languages from "../../../../service/translation/languages"; import Settings from '../../../settings/Settings'; -const sidePannelsContainerId = 'sideToolbarContainer'; -const compiledTpl = _.template(` +const sidePanelsContainerId = 'sideToolbarContainer'; +const htmlStr = `
@@ -55,10 +55,11 @@ const compiledTpl = _.template(`
- `); + `; + function initHTML() { - $(`#${sidePannelsContainerId}`) - .append(compiledTpl()); + $(`#${sidePanelsContainerId}`) + .append(htmlStr); } /**