$((function(){new Garnish.DragSort($("#field-settings tbody tr"),{handle:".move",axis:"y"});var t=$("#add-filter"),e=$("#filter-table"),r=$("template",e);t.on({click:function(){var t=r.html(),a=$("tbody > tr[data-iterator]:last").data("iterator"),i=0;void 0!==a&&(i=parseInt(a)+1),t=t.replace(/__iterator__/g,i),$("tbody",e).append(t)}}),e.on({click:function(){if(!confirm("Are you sure?"))return!1;$(this).parents("tr:first").remove()}},".delete.icon")}));