Check for menu target
authorThierry Florac <thierry.florac@onf.fr>
Wed, 05 Oct 2016 17:33:07 +0200
changeset 177 88ada40a3fa4
parent 176 48ee8cf8f128
child 178 2c3ba8d90123
Check for menu target
src/ztfy/myams/viewlet/menu/menu-item.pt
--- a/src/ztfy/myams/viewlet/menu/menu-item.pt	Thu Sep 29 15:13:07 2016 +0200
+++ b/src/ztfy/myams/viewlet/menu/menu-item.pt	Wed Oct 05 17:33:07 2016 +0200
@@ -2,6 +2,7 @@
 	<li tal:attributes="class view/css_class">
 		<a tal:condition="view/label"
 		   tal:attributes="href view/getURL;
+						   target view/target | nothing;
 						   data-toggle python:'modal' if view.modal_target else '';
 						   title view/label;">
 			<i tal:condition="view/icon_class"