|  |  |  | 
|---|
|  |  |  | var TPL_DLG_SENDER_EDIT = 'dlg-sender-edit'; | 
|---|
|  |  |  | var TPL_SENDER_EDIT_FORM = 'sender-edit-form'; | 
|---|
|  |  |  | var TPL_SENDER_KACHEL = 'sender-kachel'; | 
|---|
|  |  |  | var TPL_ABSPIELER = 'abspieler'; | 
|---|
|  |  |  | var templateCache = {}; // mustache templates | 
|---|
|  |  |  | var prefsRendered = false; | 
|---|
|  |  |  | var senderKlickModus = "0"; // 1=abspielen, 2=bearbeiten, 3=loeschen | 
|---|
|  |  |  | 
|---|
|  |  |  | app_get_template('data/tpl/dlg-sender-edit.tpl', TPL_DLG_SENDER_EDIT); | 
|---|
|  |  |  | app_get_template('data/tpl/dlg-sender-edit-form.tpl', TPL_SENDER_EDIT_FORM); | 
|---|
|  |  |  | app_get_template('data/tpl/kachel.tpl', TPL_SENDER_KACHEL); | 
|---|
|  |  |  | app_get_template('data/tpl/abspieler.tpl', TPL_ABSPIELER); | 
|---|
|  |  |  | //app_get_template('tpl/prefs.tpl', 'prefs'); | 
|---|
|  |  |  | $('.sued').text('Bereit.'); | 
|---|
|  |  |  | setTimeout(function() { | 
|---|
|  |  |  | app_get_abspieler(); | 
|---|
|  |  |  | app_get_sender(); | 
|---|
|  |  |  | }, 200); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | function app_get_abspieler() { | 
|---|
|  |  |  | $.ajax({ | 
|---|
|  |  |  | url: "data/abspieler.json", | 
|---|
|  |  |  | type: "GET", | 
|---|
|  |  |  | dataType : "json" | 
|---|
|  |  |  | }).done(function( abspielerliste ) { | 
|---|
|  |  |  | $(".abspieler-behaelter").html( | 
|---|
|  |  |  | Mustache.render(templateCache[TPL_ABSPIELER], abspielerliste)); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | function app_dialog_laden_und_zeigen(vorlage, adresse) { | 
|---|
|  |  |  | if(adresse !== '') { | 
|---|
|  |  |  | $.ajax({ | 
|---|