ulrich
2018-02-25 6b63ff8c8429e328aa3ad90868e69ba28b28ef63
Senderkacheln auf Transit-Antwort umgestellt
1 files modified
2 files added
35 ■■■■■ changed files
web/app.js 5 ●●●●● patch | view | raw | blame | history
web/data/sender-transit-beispiel.json 20 ●●●●● patch | view | raw | blame | history
web/data/tpl/sender-transit.tpl 10 ●●●●● patch | view | raw | blame | history
web/app.js
@@ -36,7 +36,8 @@
  // 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);
@@ -373,7 +374,7 @@
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 ) {
web/data/sender-transit-beispiel.json
New file
@@ -0,0 +1,20 @@
{"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"
  }
]}
web/data/tpl/sender-transit.tpl
New file
@@ -0,0 +1,10 @@
<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>