From 2af7d6512096c84b028011503246ce86deec540f Mon Sep 17 00:00:00 2001
From: ulrich
Date: Wed, 21 Apr 2021 12:59:07 +0000
Subject: [PATCH] Vorlagencache aktiviert

---
 www/ui/js/app.js |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/www/ui/js/app.js b/www/ui/js/app.js
index b2162e7..441b7ac 100644
--- a/www/ui/js/app.js
+++ b/www/ui/js/app.js
@@ -45,7 +45,7 @@
     document.querySelector('.breadcrumb-behaelter').textContent = '';
     document.querySelector('.bereich-name').textContent = 'Livestream-Auswahl'; 
     self.http_get('../api/store/Livestream/liste/', function(responseText) {
-      self.vorlage_laden_und_fuellen("data/tpl/livestream_liste.txt", JSON.parse(responseText), function (html) {
+      self.html_erzeugen("data/tpl/livestream_liste.txt", JSON.parse(responseText), function (html) {
         document.querySelector(".zentraler-inhalt").innerHTML = html;
         self.addEvtListener('.entity-eintrag', 'click', function (event) {
           var t = event.target;
@@ -68,7 +68,7 @@
       // Kataloge listen
       self.http_get('../api/store/Ablageort/liste/', function (responseText) {
         //document.querySelector('#top-up-btn').removeEventListener('click', self.media_liste_herauf);
-        self.vorlage_laden_und_fuellen("data/tpl/katalog_root_liste.txt", JSON.parse(responseText), function (html) {
+        self.html_erzeugen("data/tpl/katalog_root_liste.txt", JSON.parse(responseText), function (html) {
           document.querySelector(".zentraler-inhalt").innerHTML = html;
           self.addEvtListener('.entity-eintrag', 'click', function (event) {
             var t = event.target;
@@ -113,7 +113,7 @@
         url = url + '/';
       }
       self.http_get(url, function(responseText) {
-        self.vorlage_laden_und_fuellen("data/tpl/katalog_inhalt_liste.txt", JSON.parse(responseText), function (html) {
+        self.html_erzeugen("data/tpl/katalog_inhalt_liste.txt", JSON.parse(responseText), function (html) {
           document.querySelector(".zentraler-inhalt").innerHTML = html;
           self.addEvtListener('.entity-eintrag', 'click', function (event) {
             var t = event.target;
@@ -317,14 +317,14 @@
   /* ------------------------------- UI-Dynamik ----------------------- */
   
   self.reset_top_buttons = function() {
-    self.vorlage_laden_und_fuellen("data/tpl/top_btns.txt", '', function (html) {
+    self.html_erzeugen("data/tpl/top_btns.txt", '', function (html) {
       document.querySelector(".top-btns").innerHTML = html;
     });
   };
   
   this.abspieler_auswahl_fuellen = function() {
     self.http_get('../api/store/Abspieler/liste/', function (responseText) {
-      self.vorlage_laden_und_fuellen("data/tpl/abs_sel.txt", JSON.parse(responseText), function (html) {
+      self.html_erzeugen("data/tpl/abs_sel.txt", JSON.parse(responseText), function (html) {
         document.querySelector(".abs-sel").innerHTML = html;
       });    
     });
@@ -332,7 +332,7 @@
 
   this.abspielliste_auswahl_fuellen = function() {
     self.http_get('../api/store/Abspielliste/', function (responseText) {
-      self.vorlage_laden_und_fuellen("data/tpl/pl_sel.txt", JSON.parse(responseText), function (html) {
+      self.html_erzeugen("data/tpl/pl_sel.txt", JSON.parse(responseText), function (html) {
         document.querySelector(".pl-sel").innerHTML = html;
         self.addEvtListener('#playlist', 'change', function() {
           self.titel_liste();
@@ -344,7 +344,7 @@
   /* Unterer Einblendbereich */
   
   this.dialog_unten_zeigen = function() {
-    self.vorlage_laden_und_fuellen("data/tpl/ctrl.txt", "", function (html) {
+    self.html_erzeugen("data/tpl/ctrl.txt", "", function (html) {
       var dlg = document.querySelector(".dialog-unten");
       //dlg.style.height = '10em';
       dlg.innerHTML = html;
@@ -387,7 +387,7 @@
     var bb = document.querySelector('.breadcrumb-behaelter');
     bb.textContent = "";
     self.http_get('../api/alist/' + plname, function (responseText) {
-      self.vorlage_laden_und_fuellen("data/tpl/titel_liste.txt", JSON.parse(responseText), function (html) {
+      self.html_erzeugen("data/tpl/titel_liste.txt", JSON.parse(responseText), function (html) {
         document.querySelector(".zentraler-inhalt").innerHTML = html;
         self.addEvtListener('.entity-eintrag', 'click', function (event) {
           var t = event.target;
@@ -529,7 +529,7 @@
     var bb = document.querySelector('.breadcrumb-behaelter');
     bb.textContent = "";
     self.http_get(listUrl, function (responseText) {
-      self.vorlage_laden_und_fuellen(tpl, JSON.parse(responseText), function (html) {
+      self.html_erzeugen(tpl, JSON.parse(responseText), function (html) {
         document.querySelector(".zentraler-inhalt").innerHTML = html;
         self.addEvtListener('.entity-eintrag', 'click', function (event) {
           var t = event.target;
@@ -569,7 +569,7 @@
 
   this.entitaet_form = function(bname, dat, key, tpl, url, selector, cb) {
     document.querySelector('.bereich-name').textContent = bname;
-    self.vorlage_laden_und_fuellen(tpl, dat, function (html) {
+    self.html_erzeugen(tpl, dat, function (html) {
       document.querySelector(".zentraler-inhalt").innerHTML = html;
       const form = document.querySelector('form');      
       form.addEventListener('submit', function(event) {

--
Gitblit v1.9.3