dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #40803
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 20759: Added target=__blank to file downloads in data entry. Workaround for inability to consistently se...
------------------------------------------------------------
revno: 20759
committer: Halvdan Hoem Grelland <halvdanhg@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2015-10-19 12:22:53 +0200
message:
Added target=__blank to file downloads in data entry. Workaround for inability to consistently set the content disposition header across file stores
modified:
dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/entry.fileresource.js
dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/entry.fileresource.js'
--- dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/entry.fileresource.js 2015-10-16 12:19:34 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/entry.fileresource.js 2015-10-19 10:22:53 +0000
@@ -138,6 +138,7 @@
$( '<a>', {
text: name,
title: name,
+ target: '__blank',
href: '../api/dataValues/files?' + $.param( formData )
} ).appendTo( $fileinfoName );
=== modified file 'dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js'
--- dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js 2015-10-14 11:46:39 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js 2015-10-19 10:22:53 +0000
@@ -1707,6 +1707,7 @@
$( '<a>', {
text: name,
title: name,
+ target: '__blank',
href: "../api/dataValues/files?" + $.param( dvParams )
} ).appendTo( $filename );