Removed obsolet tmpl function

This commit is contained in:
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 { interface JQuery {
tmpl(values?: any) : JQuery;
render(values?: any) : string; render(values?: any) : string;
renderTag(values?: any) : JQuery; renderTag(values?: any) : JQuery;
} }

View file

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

View file

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

View file

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

View file

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

View file

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