fix urls of downloaded files to those provided by clsi

This commit is contained in:
Brian Gough 2016-06-14 14:51:33 +01:00
parent 830d15136d
commit ed6c384b68

View file

@ -125,7 +125,8 @@ define [
file.name = "#{file.path.replace(/^output\./, "")} file"
else
file.name = file.path
file.url = "/project/#{project_id}/output/#{file.path}"
if not file.url?
file.url = "/project/#{project_id}/output/#{file.path}"
if response.clsiServerId?
file.url = file.url + "?clsiserverid=#{response.clsiServerId}"
$scope.pdf.outputFiles.push file