Updated share button "onclick" attribute
authorThierry Florac <tflorac@ulthar.net>
Tue, 22 Jan 2019 14:58:34 +0100
changeset 391 896a5919adb8
parent 390 f2c646b0ddbf
child 392 3121865dcd5d
Updated share button "onclick" attribute
src/pyams_default_theme/features/share/portlet/templates/toolbox.pt
--- a/src/pyams_default_theme/features/share/portlet/templates/toolbox.pt	Tue Jan 22 14:55:36 2019 +0100
+++ b/src/pyams_default_theme/features/share/portlet/templates/toolbox.pt	Tue Jan 22 14:58:34 2019 +0100
@@ -14,7 +14,7 @@
 			<tal:var define="url item.get_url(context, request)">
 				<button type="button" class="btn btn-default hidden-xs hidden-sm"
 						title="${i18n:item.label}"
-						onclick="javascript:window.location.href='${url}';">
+						onclick="window.open('${url}', '_blank');">
 					<i class="fa fa-fw"
 					   tal:define="pictogram i18n:item.pictogram.image">
 						${structure:tales:thumbnail(pictogram, '2rem', '2rem')}
@@ -25,4 +25,4 @@
 		</tal:loop>
 	</tal:if>
 
-</div>
\ No newline at end of file
+</div>