| | |
| | | ); |
| | | $('#sender-speichern').on('click', function() { |
| | | $('#sender-speichern').off('click'); |
| | | app_kachel_anpassen(app_sender_dialog_lesen(senderId)); |
| | | var sender = app_sender_dialog_lesen(senderId); |
| | | |
| | | app_sender_aendern(sender); |
| | | |
| | | app_kachel_anpassen(sender); |
| | | app_dialog_schliessen(); |
| | | app_meldung_mit_timeout('Speichern gewaehlt', 1500); |
| | | }); |
| | |
| | | }, "json"); |
| | | } |
| | | |
| | | function app_sender_aendern(sender) { |
| | | var obj = serialisieren(sender); |
| | | var url = 'api?c=de.uhilger.radiozentrale.api.SenderApi&m=senderAendern'; |
| | | $.post( url, 'p=' + obj, function( result ) { |
| | | console.log( result ); |
| | | }, "json"); |
| | | } |
| | | |
| | | /* Hilfsfunktionen */ |
| | | |
| | | function serialisieren(obj) { |