diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-03-29 11:55:06 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2016-08-15 19:46:47 +0200 |
| commit | b5039de37e5e942c384763f5c97d88d04225fd8a (patch) | |
| tree | 167214d558b58d412a46900bc32b32d149b91780 | |
| parent | a8a8407a0cfe556e604d10f806a55b665e3e0f07 (diff) | |
| download | wvs-vplan-b5039de37e5e942c384763f5c97d88d04225fd8a.tar.gz wvs-vplan-b5039de37e5e942c384763f5c97d88d04225fd8a.zip | |
kleinere Änderungen
| -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); }); |
