Commit 923cac6a authored by gsalin's avatar gsalin
Browse files
parent 7cd29580
......@@ -305,13 +305,13 @@ $(function () {
id : "download_url",
wfName : "DownloadURL",
run : function(form_options, modal){
form_options.parameters['url_base'] = location.href.replace(/index\.php.+/, "" ) + 'fileadmin';
form_options.parameters['url_base'] = location.href.replace(/download/, "" ) + 'fileadmin';
// display modal box
modal.$modal.modal();
modal.$modal.find('#wfform').wfform(form_options);
modal.$modal.find('#wfform').on('run.wfform', function(event, running_wf) {
_retrieve_url_list(modal, running_wf, 'output_urls.txt', function(filedata){
var link_prefix = location.href.replace(/index\.php.+/, "" ) + 'fileadmin' ;
var link_prefix = location.href.replace(/download/, "" ) + 'fileadmin' ;
var file_list = [];
$.each(filedata.trim().split('\n'), function(i, path){
file_list.push(link_prefix + path);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment