| | |
| | | //app_get_template('tpl/prefs.tpl', 'prefs'); |
| | | $('.sued').text('Bereit.'); |
| | | setTimeout(function() { |
| | | $("#sender").html(Mustache.render(templateCache[TPL_SENDER], '')); |
| | | app_get_sender(); |
| | | }, 200); |
| | | } |
| | | |
| | | /* --- Ajax-Aufrufe --- */ |
| | | |
| | | function app_get_sender() { |
| | | $.ajax({ |
| | | url: "api/sender.json", |
| | | type: "GET", |
| | | dataType : "json" |
| | | }).done(function( senderliste ) { |
| | | $("#sender").html(Mustache.render(templateCache[TPL_SENDER], senderliste)); |
| | | }); |
| | | } |
| | | |
| | | /* |
| | | Ein Template vom Server in den Cache laden |
| | | template_url - home.tpl, prefs.tpl, sender.tpl |