From c9d6c1ac597b7a9747fcf762bfb2007582e14957 Mon Sep 17 00:00:00 2001
From: ulrich <undisclosed>
Date: Fri, 13 Dec 2019 19:24:15 +0000
Subject: [PATCH] Doku angepasst

---
 jslib/vorlagen.js |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/jslib/vorlagen.js b/jslib/vorlagen.js
index af34d22..d76cd94 100644
--- a/jslib/vorlagen.js
+++ b/jslib/vorlagen.js
@@ -42,6 +42,7 @@
             Inhalt gefüllt ist
   */
   this.vorlage_laden_und_fuellen = function(vurl, inhalt, cb) {
+    /*
     $.ajax({
       url: vurl,
       type: "GET",
@@ -50,6 +51,16 @@
       self.cache[vurl] = vorlage;
       self.vorlage_fuellen(vurl, inhalt, cb);
     });
+    */
+    var xmlhttp = new XMLHttpRequest();
+    xmlhttp.onreadystatechange = function() {
+      if (this.readyState == 4 && this.status == 200) {
+        self.cache[vurl] = this.responseText;
+        self.vorlage_fuellen(vurl, inhalt, cb);
+      }
+    };
+    xmlhttp.open("GET", vurl, true);
+    xmlhttp.send();
   };
 
 }

--
Gitblit v1.9.3