0.0.159 routes

This commit is contained in:
SBD
2025-02-17 16:13:53 +03:00
parent b4b79e185e
commit 8119955f52
6 changed files with 31 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ function searchRoutes (form=undefined) {
data_type: 'formData',
success: function (res) {
if (!res.html) return;
let $parent = $('.routes_search_results')[0]
let $parent = $('.routes_search_results .routes_cont')[0]
$parent.innerHTML = res.html;
}

View File

@@ -0,0 +1,11 @@
function templateStrToNode(template) {
let template_cont = document.createElement("template");
template_cont.innerHTML = template;
return template_cont.content.children;
}
function appendNodes($cont, nodes) {
while (nodes.length > 0){
$cont.append(nodes[0]);
}
}