diff --git a/templates/web/admin/collection/reorder.html.twig b/templates/web/admin/collection/reorder.html.twig index a91f666cae..f8a3f2389b 100644 --- a/templates/web/admin/collection/reorder.html.twig +++ b/templates/web/admin/collection/reorder.html.twig @@ -47,7 +47,7 @@ $(document).ready(function(){ var offsets = [ {% for collection in collections|sort_collections %} - {% if not loop.first %},{% endif %} {{ collection.get_ord() }} + {% if not loop.first %},{% endif %} {{ loop.index }} {% endfor %} ]; var select = $("#coll-order"); @@ -91,7 +91,7 @@ data: {order: order}, url: '{{ path('admin_database_submit_collections_order', {'databox_id': app['request'].attributes.get('databox_id')}) }}', beforeSend : function() { - $this.prop('disabled',true) + $this.prop('disabled',true); }, success : function(datas) { var html = _.template($("#alert_"+ (datas.success ? "success" : "error") +"_tpl").html(), { diff --git a/templates/web/prod/index.html.twig b/templates/web/prod/index.html.twig index 4e04cfe9ee..d34c55edbf 100644 --- a/templates/web/prod/index.html.twig +++ b/templates/web/prod/index.html.twig @@ -22,10 +22,10 @@
- + id="ck_{{base_id}}_{{unique_id}}" type="checkbox" + name="bases[]" value="{{base_id}}" {% if collection["selected"] %}checked="checked"{% endif %} />