| | |
| | | "self.form_geraet_status", function(responseText) { |
| | | var geraet = JSON.parse(responseText); |
| | | self.geraet_status_form(geraet); |
| | | }, function() { |
| | | self.addEvtListener('#ein-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 + "/ein", function(responseText) { |
| | | console.log(responseText); |
| | | }); |
| | | }); |
| | | 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); |
| | | }); |
| | | }); |
| | | }); |
| | | }; |
| | | |
| | |
| | | * self.ablageort_form(ablageort); |
| | | * }); |
| | | */ |
| | | this.entitaet_liste = function(bname, listUrl, tpl, storeUrl, formFunc, cb) { |
| | | this.entitaet_liste = function(bname, listUrl, tpl, storeUrl, formFunc, cb, customListCode) { |
| | | self.reset_top_buttons(); |
| | | document.querySelector('.bereich-name').textContent = bname; |
| | | var bb = document.querySelector('.breadcrumb-behaelter'); |
| | |
| | | //self.addEvtListener('#neu-btn', 'click', function (event) { |
| | | self.addEvtListener('#top-neu-btn', 'click', function(event) { |
| | | eval(formFunc + "(this)"); |
| | | }); |
| | | }); |
| | | if(typeof(customListCode) !== 'function') { |
| | | // .. |
| | | } else { |
| | | customListCode(); |
| | | } |
| | | }); |
| | | }); |
| | | }; |