Explorar el Código

Remove ng-click on output files, which was causing a double-request for download.

Shane Kilkelly hace 11 años
padre
commit
30a63d1e42

+ 0 - 1
services/web/app/views/project/editor/pdf.jade

@@ -159,7 +159,6 @@ div.full-size.pdf(ng-controller="PdfController")
 							a(
 								href="/project/{{project_id}}/output/{{file.path}}"
 								target="_blank"
-								ng-click="openOutputFile(file)"
 							) {{ file.name }}
 			a.btn.btn-info.btn-sm(href, ng-click="toggleRawLog()")
 				span(ng-show="!pdf.showRawLog") #{translate("view_raw_logs")}

+ 0 - 3
services/web/public/coffee/ide/pdf/controllers/PdfController.coffee

@@ -166,9 +166,6 @@ define [
 		$scope.toggleRawLog = () ->
 			$scope.pdf.showRawLog = !$scope.pdf.showRawLog
 
-		$scope.openOutputFile = (file) ->
-			window.open("/project/#{$scope.project_id}/output/#{file.path}")
-
 		$scope.openClearCacheModal = () ->
 			modalInstance = $modal.open(
 				templateUrl: "clearCacheModalTemplate"