Added "multiple" attribute to references list widget to allow sorting of selected elements
authorThierry Florac <thierry.florac@onf.fr>
Fri, 29 Jun 2018 18:12:36 +0200
changeset 51 a6da2cc58c0a
parent 50 f4068aeb3763
child 52 3351d1c1595c
Added "multiple" attribute to references list widget to allow sorting of selected elements
src/pyams_sequence/widget/templates/references-list-input.pt
--- a/src/pyams_sequence/widget/templates/references-list-input.pt	Thu Jun 28 08:43:43 2018 +0200
+++ b/src/pyams_sequence/widget/templates/references-list-input.pt	Fri Jun 29 18:12:36 2018 +0200
@@ -8,7 +8,7 @@
 		tal:attributes="data-ams-select2-target view/name"></i>
 	<div class="select2-parent"
 		 tal:omit-tag="view/required">
-		<input type="hidden" autocomplete="off"
+		<input type="hidden" autocomplete="off" multiple="multiple"
 			data-ams-select2-minimum-input-length="2"
 			data-ams-select2-allow-clear="true"
 			data-ams-select2-multiple="true"