← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 6184: Using a href instead of window.location in resource/document ui so links to documents can be copi...

 

------------------------------------------------------------
revno: 6184
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2012-03-06 08:43:30 +0100
message:
  Using a href instead of window.location in resource/document ui so links to documents can be copied by right-clicking on the generate button
modified:
  dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/viewDocumentForm.vm


--
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-reporting/src/main/webapp/dhis-web-reporting/viewDocumentForm.vm'
--- dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/viewDocumentForm.vm	2011-12-09 20:44:59 +0000
+++ dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/viewDocumentForm.vm	2012-03-06 07:43:30 +0000
@@ -37,9 +37,9 @@
                     <td>$encoder.htmlEncode( $document.name )</td>
 					<td>
 						#if ( $document.external )
-                    	   <a href="$document.url" title="$i18n.getString( 'view_report' )">
+                    	   <a href="${document.url}" title="$i18n.getString( 'view_report' )">
                     	#else
-                    	   <a href="javascript:window.location.href='../dhis-web-commons-stream/loadDocument.action?id=$document.id'" title="$i18n.getString( 'view_report' )">
+                    	   <a href="../dhis-web-commons-stream/loadDocument.action?id=${document.id}" title="$i18n.getString( 'view_report' )">
                     	#end
                     	<img src="../images/start_process.png" alt="$i18n.getString( 'view_report' )"></a>                    
                     	<a href="displayAddDocumentForm.action?id=$!document.id" title="$i18n.getString( "edit" )"><img src="../images/edit.png" alt="$i18n.getString( "edit" )"></a>