Removed obsolet tmpl function

canary
WolverinDEV 2018-06-23 23:17:45 +02:00
parent f0d43f3fe5
commit a3acf09bc3
6 changed files with 5 additions and 6 deletions

View File

@ -6,7 +6,6 @@ interface Array<T> {
}
interface JQuery {
tmpl(values?: any) : JQuery;
render(values?: any) : string;
renderTag(values?: any) : JQuery;
}

View File

@ -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
});

View File

@ -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

View File

@ -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();
},

View File

@ -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;

View File

@ -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>