Stop events propagation on action button
authorThierry Florac <thierry.florac@onf.fr>
Fri, 10 Nov 2017 13:32:41 +0100
changeset 235 fd00152fd336
parent 234 085af6787574
child 236 5556af09920b
Stop events propagation on action button
src/pyams_skin/viewlet/toolbar/action.pt
--- a/src/pyams_skin/viewlet/toolbar/action.pt	Thu Oct 26 14:28:24 2017 +0200
+++ b/src/pyams_skin/viewlet/toolbar/action.pt	Fri Nov 10 13:32:41 2017 +0100
@@ -2,7 +2,8 @@
 	 tal:attributes="class view.group_css_class | default">
 	<div tal:attributes="class view.css_class;
 						 data-toggle 'modal' if view.modal_target else None;
-						 data-ams-url view.get_url()">
+						 data-ams-url view.get_url();
+						 data-ams-stop-propagation 'true' if view.modal_target else None;">
 		<i tal:attributes="class view.label_css_class"></i>&nbsp;
 		<tal:var content="view.label" />
 	</div>