| | |
| | | function app_init() { |
| | | $('.dialog').hide(); |
| | | $('.ost').hide(); |
| | | app_menu_init("data/menu/", "hauptmenue.json", "../jslib/app-menu/app-menu.tpl", ".west", "8em"); |
| | | app_menu_init( |
| | | "data/menu/", |
| | | "hauptmenue.json", |
| | | "../jslib/app-menu/app-menu.tpl", |
| | | ".west", |
| | | "8em"); |
| | | 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); |
| | |
| | | function app_neuer_sender() { |
| | | app_dialog_laden_und_zeigen(templateCache[TPL_DLG_SENDER_NEU], ''); |
| | | $('#sender-speichern').on('click', function() { |
| | | $('#sender-speichern').attr('onclick','').unbind('click'); |
| | | $('#sender-speichern').off('click'); |
| | | app_dialog_schliessen(); |
| | | app_meldung_mit_timeout('Speichern gewaehlt', 1500); |
| | | }); |
| | |
| | | } |
| | | |
| | | function app_dialog_schliessen() { |
| | | $('.close-btn').attr('onclick','').unbind('click'); |
| | | $('.close-btn').off('click'); |
| | | $('.dialog').slideUp(300); |
| | | } |
| | | |
| | |
| | | dataType : "json" |
| | | }).done(function( senderliste ) { |
| | | $(".sender-behaelter").html(Mustache.render(templateCache[TPL_SENDER], senderliste)); |
| | | $('.sender-kachel').on('click', function() { |
| | | var kachel = $( this ); |
| | | var senderId = kachel.attr("sid"); |
| | | var senderName = $(kachel).find(".sender-name").text(); |
| | | app_meldung_mit_timeout( |
| | | 'Sender ' + senderName + ', ID ' + senderId, |
| | | 1500); |
| | | }); |
| | | }); |
| | | } |
| | | |