Removed obsolet tmpl function
This commit is contained in:
parent
f0d43f3fe5
commit
a3acf09bc3
6 changed files with 5 additions and 6 deletions
|
@ -6,7 +6,6 @@ interface Array<T> {
|
||||||
}
|
}
|
||||||
|
|
||||||
interface JQuery {
|
interface JQuery {
|
||||||
tmpl(values?: any) : JQuery;
|
|
||||||
render(values?: any) : string;
|
render(values?: any) : string;
|
||||||
renderTag(values?: any) : JQuery;
|
renderTag(values?: any) : JQuery;
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@ namespace Modals {
|
||||||
return "Ban client";
|
return "Ban client";
|
||||||
},
|
},
|
||||||
body: function () {
|
body: function () {
|
||||||
let tag = $("#tmpl_client_ban").tmpl({
|
let tag = $("#tmpl_client_ban").renderTag({
|
||||||
client_name: name
|
client_name: name
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ namespace Modals {
|
||||||
return header;
|
return header;
|
||||||
},
|
},
|
||||||
body: function () {
|
body: function () {
|
||||||
let tag = $("#tmpl_change_volume").tmpl();
|
let tag = $("#tmpl_change_volume").renderTag();
|
||||||
tag.find(".volume_slider").on("change",_ => updateCallback(tag.find(".volume_slider").val()));
|
tag.find(".volume_slider").on("change",_ => updateCallback(tag.find(".volume_slider").val()));
|
||||||
tag.find(".volume_slider").on("input",_ => updateCallback(tag.find(".volume_slider").val()));
|
tag.find(".volume_slider").on("input",_ => updateCallback(tag.find(".volume_slider").val()));
|
||||||
//connect_address
|
//connect_address
|
||||||
|
|
|
@ -6,7 +6,7 @@ namespace Modals {
|
||||||
const modal = createModal({
|
const modal = createModal({
|
||||||
header: channel ? "Edit channel" : "Create channel",
|
header: channel ? "Edit channel" : "Create channel",
|
||||||
body: () => {
|
body: () => {
|
||||||
let template = $("#tmpl_channel_edit").tmpl(channel ? channel.properties : new ChannelProperties());
|
let template = $("#tmpl_channel_edit").renderTag(channel ? channel.properties : new ChannelProperties());
|
||||||
template = $.spawn("div").append(template);
|
template = $.spawn("div").append(template);
|
||||||
return template.tabify();
|
return template.tabify();
|
||||||
},
|
},
|
||||||
|
|
|
@ -9,7 +9,7 @@ namespace Modals {
|
||||||
modal = createModal({
|
modal = createModal({
|
||||||
header: "Settings",
|
header: "Settings",
|
||||||
body: () => {
|
body: () => {
|
||||||
let template = $("#tmpl_settings").tmpl();
|
let template = $("#tmpl_settings").renderTag();
|
||||||
template = $.spawn("div").append(template);
|
template = $.spawn("div").append(template);
|
||||||
initialiseSettingListeners(modal,template = template.tabify());
|
initialiseSettingListeners(modal,template = template.tabify());
|
||||||
return template;
|
return template;
|
||||||
|
|
|
@ -323,7 +323,7 @@
|
||||||
if(this.current_selected.properties.client_input_muted)
|
if(this.current_selected.properties.client_input_muted)
|
||||||
spawnTag("input_muted", "Microphone Muted").appendTo(this._htmlTag);
|
spawnTag("input_muted", "Microphone Muted").appendTo(this._htmlTag);
|
||||||
-->
|
-->
|
||||||
<script id="tmpl_selected_client" type="text/x-jsrender">
|
<script id="tmpl_selected_client" type="text/html">
|
||||||
<table class="select_info_table">
|
<table class="select_info_table">
|
||||||
<tr>
|
<tr>
|
||||||
<td>Name:</td>
|
<td>Name:</td>
|
||||||
|
|
Loading…
Add table
Reference in a new issue