diff options
| -rw-r--r-- | js/index.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/js/index.js b/js/index.js index 5a06d7b..82350e3 100644 --- a/js/index.js +++ b/js/index.js @@ -30,6 +30,7 @@ $(document).on('pageinit', function(){ $('#loader').parent().find('.ui-slider-handle').hide(); }); +// Page-Template für Vertretungsplan var page_html = '\n\ <div data-role="page" class="page" id="page-vplan-{ID}" data-prefetch>\n\ <div data-role="header">\n\ @@ -118,6 +119,7 @@ function download_pdf(link, id){ }, function(error){ console.log('Fehler: ' + error.source + ' - '+ error.target + ' - ' + error.code); + fail(); } ); }, @@ -128,7 +130,6 @@ function download_pdf(link, id){ function get_plan(link, id){ var request = $.ajax({ - type: 'GET', url: link }); @@ -137,7 +138,6 @@ function get_plan(link, id){ var pdflink = pdf_re.exec(result)[1]; console.log('Plan gefunden: ' + pdflink); - download_pdf(pdflink, id); }); @@ -146,7 +146,6 @@ function get_plan(link, id){ function get_overview(link){ var request = $.ajax({ - type: 'GET', url: link }); @@ -223,7 +222,6 @@ function login(){ var link = vertretungs_re.exec(result)[1]; console.log('Login-Request erfolgreich: ' + link); - get_overview(link); }); |
