summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to '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\\('(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]);
}