Persoenliche Mediazentrale
ulrich
2021-04-21 757acef98231fb7b5923befbe0498924874ebd32
www/ui/js/app.js
@@ -166,14 +166,16 @@
          var geraetName = event.target.attributes.gname.nodeValue;
          //var geraetName = document.querySelector('.schalt-geraet-name').textContent;
          self.http_get('../api/gstrg/geraet/' + geraetName + "/ein", function(responseText) {
            console.log(responseText);
            // console.log(responseText);
            self.geraet_schalt_liste();
          });
        });
        self.addEvtListener('#aus-btn', 'click', function (event) {
          var geraetName = event.target.attributes.gname.nodeValue;
          //var geraetName = document.querySelector('.schalt-geraet-name').textContent;
          self.http_get('../api/gstrg/geraet/' + geraetName + "/aus", function(responseText) {
            console.log(responseText);
            // console.log(responseText);
            self.geraet_schalt_liste();
          });
        });        
      });