| | |
| | | }, 200); |
| | | } |
| | | |
| | | /* Senderliste */ |
| | | |
| | | function app_kachel_anpassen(sender) { |
| | | var kachel = $( "div[sid='" + sender.id + "']" ); |
| | | $(kachel).find(".sender-name").text(sender.name); |
| | | $(kachel).attr("data-verweis", sender.url); |
| | | $(kachel).find("img").attr("src", sender.logo); |
| | | } |
| | | |
| | | /* --- Menüfunktionen --- */ |
| | | |
| | | function app_nachricht_test() { |
| | |
| | | ); |
| | | $('#sender-speichern').on('click', function() { |
| | | $('#sender-speichern').off('click'); |
| | | var nameNeu = $("#sender-name").val(); |
| | | var logoNeu = $("#sender-logo").val(); |
| | | var urlNeu = $("#sender-url").val(); |
| | | var sNeu = new Sender(senderId, nameNeu, urlNeu, logoNeu); |
| | | app_kachel_anpassen(sNeu); |
| | | app_dialog_schliessen(); |
| | | app_meldung_mit_timeout('Speichern gewaehlt', 1500); |
| | | }); |