Преглед изворни кода

fix urls of downloaded files to those provided by clsi

Brian Gough пре 10 година
родитељ
комит
ed6c384b68
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      services/web/public/coffee/ide/pdf/controllers/PdfController.coffee

+ 2 - 1
services/web/public/coffee/ide/pdf/controllers/PdfController.coffee

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