| | |
| | | self.abspielliste_auswahl_fuellen(); |
| | | self.abspielliste_liste(); |
| | | }); |
| | | /* |
| | | self.vorlage_laden_und_fuellen("data/tpl/form_abspielliste.tpl", al, function (html) { |
| | | document.querySelector(".zentraler-inhalt").innerHTML = html; |
| | | const form = document.querySelector('form'); |
| | | form.addEventListener('submit', function(event) { |
| | | self.handle_submit(event, al.name, '../api/store/Abspielliste/', '#abspielliste-name', function() { |
| | | self.abspielliste_auswahl_fuellen(); |
| | | self.abspielliste_liste(); |
| | | }); |
| | | }); |
| | | self.addEvtListener('#cancel-btn', 'click', function () { |
| | | //document.querySelector(".zentraler-inhalt").innerHTML = ''; |
| | | self.abspielliste_liste(); |
| | | }); |
| | | self.addEvtListener('#loeschen-btn', 'click', function(event) { |
| | | event.preventDefault(); |
| | | self.handle_del_btn('#abspielliste-name', '../api/store/Abspielliste/', function() { |
| | | self.abspielliste_auswahl_fuellen(); |
| | | self.abspielliste_liste(); |
| | | }); |
| | | }); |
| | | }); |
| | | */ |
| | | }; |
| | | |
| | | this.abspieler_form = function(pl) { |
| | |
| | | self.abspieler_auswahl_fuellen(); |
| | | self.abspieler_liste(); |
| | | }); |
| | | /* |
| | | self.vorlage_laden_und_fuellen("data/tpl/form_abspieler.tpl", pl, function (html) { |
| | | document.querySelector(".zentraler-inhalt").innerHTML = html; |
| | | const form = document.querySelector('form'); |
| | | form.addEventListener('submit', function(event) { |
| | | self.handle_submit(event, pl.key, '../api/store/Abspieler/', '#abspieler-name', function() { |
| | | self.abspieler_auswahl_fuellen(); |
| | | self.abspieler_liste(); |
| | | }); |
| | | }); |
| | | self.addEvtListener('#cancel-btn', 'click', function () { |
| | | //document.querySelector(".zentraler-inhalt").innerHTML = ''; |
| | | self.abspieler_liste(); |
| | | }); |
| | | self.addEvtListener('#loeschen-btn', 'click', function(event) { |
| | | event.preventDefault(); |
| | | self.handle_del_btn('#abspieler-name', '../api/store/Abspieler/', function() { |
| | | self.abspieler_auswahl_fuellen(); |
| | | self.abspieler_liste(); |
| | | }); |
| | | }); |
| | | }); |
| | | */ |
| | | }; |
| | | |
| | | this.prefs_form = function(k) { |
| | |
| | | '#einstellung-key', function() { |
| | | self.prefs_liste(); |
| | | }); |
| | | /* |
| | | self.vorlage_laden_und_fuellen("data/tpl/form_einstellung.tpl", k, function (html) { |
| | | document.querySelector(".zentraler-inhalt").innerHTML = html; |
| | | const form = document.querySelector('form'); |
| | | form.addEventListener('submit', function(event) { |
| | | self.handle_submit(event, k.key, '../api/store/Einstellung/', '#einstellung-key', function() { |
| | | self.prefs_liste(); |
| | | }); |
| | | }); |
| | | self.addEvtListener('#cancel-btn', 'click', function (event) { |
| | | //document.querySelector(".zentraler-inhalt").innerHTML = ''; |
| | | event.preventDefault(); |
| | | self.prefs_liste(); |
| | | }); |
| | | self.addEvtListener('#loeschen-btn', 'click', function(event) { |
| | | event.preventDefault(); |
| | | self.handle_del_btn('#einstellung-key', '../api/store/Einstellung/', function() { |
| | | self.prefs_liste(); |
| | | }); |
| | | }); |
| | | }); |
| | | */ |
| | | }; |
| | | |
| | | /* |
| | |
| | | '#ablageort-name', function() { |
| | | self.ablageort_liste(); |
| | | }); |
| | | /* |
| | | self.vorlage_laden_und_fuellen("data/tpl/form_ablageort.tpl", ort, function (html) { |
| | | document.querySelector(".zentraler-inhalt").innerHTML = html; |
| | | const form = document.querySelector('form'); |
| | | form.addEventListener('submit', function(event) { |
| | | self.handle_submit(event, ort.name, '../api/store/Ablageort/', '#ablageort-name', function() { |
| | | self.ablageort_liste(); |
| | | }); |
| | | }); |
| | | self.addEvtListener('#cancel-btn', 'click', function () { |
| | | //document.querySelector(".zentraler-inhalt").innerHTML = ''; |
| | | self.ablageort_liste(); |
| | | }); |
| | | self.addEvtListener('#loeschen-btn', 'click', function(event) { |
| | | event.preventDefault(); |
| | | self.handle_del_btn('#ablageort-name', '../api/store/Ablageort/', function() { |
| | | self.ablageort_liste(); |
| | | }); |
| | | }); |
| | | }); |
| | | */ |
| | | }; |
| | | |
| | | /* ------------------------------- UI-Dynamik ----------------------- */ |