Added clone sortable helper
authorThierry Florac <thierry.florac@onf.fr>
Fri, 29 Sep 2017 14:08:08 +0200
changeset 185 ccf447563b12
parent 184 de7099d89ba4
child 186 dc1201385a36
Added clone sortable helper
src/pyams_content/component/gallery/zmi/templates/gallery-images.pt
--- a/src/pyams_content/component/gallery/zmi/templates/gallery-images.pt	Fri Sep 29 10:41:06 2017 +0200
+++ b/src/pyams_content/component/gallery/zmi/templates/gallery-images.pt	Fri Sep 29 14:08:08 2017 +0200
@@ -16,7 +16,8 @@
 		<div class="sortable gallery"
 			 tal:attributes="data-ams-location extension:absolute_url(context);
 							 class '{0} gallery'.format('sortable' if request.has_permission(view.permission) else '');"
-			 data-ams-sortable-stop="PyAMS_content.galleries.setOrder">
+			 data-ams-sortable-stop="PyAMS_content.galleries.setOrder"
+			 data-ams-sortable-helper="clone">
 			<div tal:repeat="image context.values()"
 				 class="image margin-5 margin-bottom-10 radius-4 padding-5 pull-left text-center"
 				 style="position: relative;"