From 07460a5988f2ec011ba08c46d7b9e3e185487d7b Mon Sep 17 00:00:00 2001
From: ulrich
Date: Tue, 06 Apr 2021 12:36:30 +0000
Subject: [PATCH] Logging-Einstellungen

---
 www/ui/js/app.js |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/www/ui/js/app.js b/www/ui/js/app.js
index 691185d..d7f6358 100644
--- a/www/ui/js/app.js
+++ b/www/ui/js/app.js
@@ -22,6 +22,9 @@
             self.ablageort_form(ablageort);
           });
         });
+        self.addEvtListener('#neu-btn', 'click', function (event) {
+          eval("self.ablageort_form" + "(this)");
+        });        
       });
     });
   };
@@ -57,10 +60,12 @@
             // hier die Antwort verarbeiten
           });
         }
-        document.querySelector(".zentraler-inhalt").innerHTML = '';
+        //document.querySelector(".zentraler-inhalt").innerHTML = '';
+        self.ablageort_liste();
       });
       self.addEvtListener('#cancel-btn', 'click', function () {
-        document.querySelector(".zentraler-inhalt").innerHTML = '';
+        //document.querySelector(".zentraler-inhalt").innerHTML = '';
+        self.ablageort_liste();
       });
       self.addEvtListener('#loeschen-btn', 'click', function() {
         var aoname = document.querySelector('#ablageort-name').value;
@@ -71,7 +76,8 @@
             self.http_delete('../api/store/Ablageort/' + aoname, '', function (responseText) {
               // hier die Antwort verarbeiten
               self.dialog_schliessen();
-              document.querySelector(".zentraler-inhalt").innerHTML = '';
+              //document.querySelector(".zentraler-inhalt").innerHTML = '';
+              self.ablageort_liste();
             });
           });
         });
@@ -87,6 +93,8 @@
     }
   };
 
+  /* asynchroner HTTP Client */
+  
   this.http_get = function (u, cb) {
     self.http_call('GET', u, null, cb);
   };

--
Gitblit v1.9.3