From 4629e862107aec7d7e550670e1602bf171765c7b Mon Sep 17 00:00:00 2001 From: Romain Neutron Date: Thu, 5 Sep 2013 13:00:23 +0200 Subject: [PATCH] Fix #1338 reorder collections don't work --- templates/web/admin/collection/reorder.html.twig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/web/admin/collection/reorder.html.twig b/templates/web/admin/collection/reorder.html.twig index a28b196482..34131abeb1 100644 --- a/templates/web/admin/collection/reorder.html.twig +++ b/templates/web/admin/collection/reorder.html.twig @@ -80,7 +80,7 @@ var html = _.template($("#alert_"+ (datas.success ? "success" : "error") +"_tpl").html(), { content:datas.msg }); - $('#table-order').before(html); + $('#table-order').insertBefore(html); }, complete : function() { $this.attr('disabled', false); @@ -91,13 +91,13 @@ function moveUpItem(select){ select.find('option:selected').each(function(){ - $(this).before($(this).prev()); + $(this).insertBefore($(this).prev()); }); } function moveDownItem(select){ select.find('option:selected').each(function(){ - $(this).after($(this).next()); + $(this).insertAfter($(this).next()); }); }