summaryrefslogtreecommitdiff
path: root/js/index.js
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2014-03-16 13:08:37 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2016-08-15 19:46:44 +0200
commite589d91be7746b2dbe0fec4fd71ba7857567c6e4 (patch)
treef58d805aba85fdb052a1937f0a6cf8e418ab13e3 /js/index.js
parent5896d4fea6aef5ff12e2a123d9814c30043bd556 (diff)
downloadwvs-vplan-e589d91be7746b2dbe0fec4fd71ba7857567c6e4.tar.gz
wvs-vplan-e589d91be7746b2dbe0fec4fd71ba7857567c6e4.zip
fixe PDF-Download
Diffstat (limited to 'js/index.js')
-rw-r--r--js/index.js6
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\\(&#039;(http://***REMOVED***\\.de/moodle/mod/resource/view\\.php\\?id=\\d+)&amp;redirect=1&#039;\\)");
var links = plans_re.exec(result);
- alert(result);
for(var i = 1; i < links.length; i += 2){
get_plan(links[i]);
}