From b5039de37e5e942c384763f5c97d88d04225fd8a Mon Sep 17 00:00:00 2001 From: schneefux Date: Sat, 29 Mar 2014 11:55:06 +0100 Subject: kleinere Änderungen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/index.js | 6 ++---- 1 file 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\
\n\
\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); }); -- cgit v1.3.1