download complete submission as one zip file

This commit is contained in:
Ralf Teusner
2016-07-15 18:25:58 +02:00
parent 41370a8703
commit 09533a5556
8 changed files with 31 additions and 7 deletions

View File

@@ -179,7 +179,10 @@ $(function() {
var downloadCode = function(event) {
event.preventDefault();
createSubmission(this, null,function(response) {
var url = response.download_url.replace(FILENAME_URL_PLACEHOLDER, active_file.filename);
var url = response.download_url;
// to download just a single file, use the following url
//var url = response.download_file_url.replace(FILENAME_URL_PLACEHOLDER, active_file.filename);
window.location = url;
});
};