diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-03-16 13:08:37 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2016-08-15 19:46:44 +0200 |
| commit | e589d91be7746b2dbe0fec4fd71ba7857567c6e4 (patch) | |
| tree | f58d805aba85fdb052a1937f0a6cf8e418ab13e3 /js | |
| parent | 5896d4fea6aef5ff12e2a123d9814c30043bd556 (diff) | |
| download | wvs-vplan-e589d91be7746b2dbe0fec4fd71ba7857567c6e4.tar.gz wvs-vplan-e589d91be7746b2dbe0fec4fd71ba7857567c6e4.zip | |
fixe PDF-Download
Diffstat (limited to 'js')
| -rw-r--r-- | js/index.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/js/index.js b/js/index.js index aabb4e1..837d5eb 100644 --- a/js/index.js +++ b/js/index.js @@ -17,7 +17,10 @@ */ function download_pdf(link){ - var request = $.fileDownload(link); + var request = $.ajax({ + type: "GET", + url: link + }); request.done(function(result){ // TODO @@ -59,7 +62,6 @@ function get_overview(link){ var plans_re = new RegExp("window\\.open\\('(http://***REMOVED***\\.de/moodle/mod/resource/view\\.php\\?id=\\d+)&redirect=1'\\)"); var links = plans_re.exec(result); - alert(result); for(var i = 1; i < links.length; i += 2){ get_plan(links[i]); } |
