Removed obsolet tmpl function
parent
f0d43f3fe5
commit
a3acf09bc3
|
@ -6,7 +6,6 @@ interface Array<T> {
|
|||
}
|
||||
|
||||
interface JQuery {
|
||||
tmpl(values?: any) : JQuery;
|
||||
render(values?: any) : string;
|
||||
renderTag(values?: any) : JQuery;
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ namespace Modals {
|
|||
return "Ban client";
|
||||
},
|
||||
body: function () {
|
||||
let tag = $("#tmpl_client_ban").tmpl({
|
||||
let tag = $("#tmpl_client_ban").renderTag({
|
||||
client_name: name
|
||||
});
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ namespace Modals {
|
|||
return header;
|
||||
},
|
||||
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("input",_ => updateCallback(tag.find(".volume_slider").val()));
|
||||
//connect_address
|
||||
|
|
|
@ -6,7 +6,7 @@ namespace Modals {
|
|||
const modal = createModal({
|
||||
header: channel ? "Edit channel" : "Create channel",
|
||||
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);
|
||||
return template.tabify();
|
||||
},
|
||||
|
|
|
@ -9,7 +9,7 @@ namespace Modals {
|
|||
modal = createModal({
|
||||
header: "Settings",
|
||||
body: () => {
|
||||
let template = $("#tmpl_settings").tmpl();
|
||||
let template = $("#tmpl_settings").renderTag();
|
||||
template = $.spawn("div").append(template);
|
||||
initialiseSettingListeners(modal,template = template.tabify());
|
||||
return template;
|
||||
|
|
|
@ -323,7 +323,7 @@
|
|||
if(this.current_selected.properties.client_input_muted)
|
||||
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">
|
||||
<tr>
|
||||
<td>Name:</td>
|
||||
|
|
Loading…
Reference in New Issue