Senderkacheln auf Transit-Antwort umgestellt
1 files modified
2 files added
| | |
| | | // Templates laden |
| | | app_get_template('data/tpl/dlg-msg.tpl', TPL_DLG_MSG); |
| | | app_get_template('data/tpl/dlg-info.tpl', TPL_DLG_INFO); |
| | | app_get_template('data/tpl/sender.tpl', TPL_SENDER); |
| | | //app_get_template('data/tpl/sender.tpl', TPL_SENDER); |
| | | app_get_template('data/tpl/sender-transit.tpl', TPL_SENDER); |
| | | app_get_template('data/tpl/dlg-sender-neu.tpl', TPL_DLG_SENDER_NEU); |
| | | app_get_template('data/tpl/dlg-sender-edit.tpl', TPL_DLG_SENDER_EDIT); |
| | | app_get_template('data/tpl/dlg-sender-loeschen.tpl', TPL_DLG_SENDER_DEL); |
| | |
| | | |
| | | function app_get_sender() { |
| | | $.ajax({ |
| | | url: "data/sender.json", |
| | | url: "api?c=de.uhilger.radiozentrale.api.SenderApi&m=senderliste&f=JSONNICE", |
| | | type: "GET", |
| | | dataType : "json" |
| | | }).done(function( senderliste ) { |
New file |
| | |
| | | {"List": [ |
| | | { |
| | | "id": 1, |
| | | "name": "test5", |
| | | "url": "test5", |
| | | "logo": "test5" |
| | | }, |
| | | { |
| | | "id": 2, |
| | | "name": "test6", |
| | | "url": "test6", |
| | | "logo": "test6" |
| | | }, |
| | | { |
| | | "id": 3, |
| | | "name": "test", |
| | | "url": "test", |
| | | "logo": "../bilder/tabletop_radio.png" |
| | | } |
| | | ]} |
New file |
| | |
| | | <div id="sender" class="sender"> |
| | | {{#List}} |
| | | <div class="sender-kachel" sid="{{id}}" data-verweis="{{url}}"> |
| | | <div class="sender-name">{{name}}</div> |
| | | <div class="sender-bild-behaelter"> |
| | | <img class="sender-bild" src="{{logo}}"> |
| | | </div> |
| | | </div> |
| | | {{/List}} |
| | | </div> |