Remove ng-click on output files, which was causing a double-request for download.
This commit is contained in:
@@ -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")}
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user