diff --git a/app/assets/javascripts/protocols/steps.js.erb b/app/assets/javascripts/protocols/steps.js.erb index cb23a530b..3592fce11 100644 --- a/app/assets/javascripts/protocols/steps.js.erb +++ b/app/assets/javascripts/protocols/steps.js.erb @@ -665,7 +665,7 @@ $("#dd-att-step-" + stepId + "-label").html(label_value); $('#att-' + stepId + ' a.file-preview-link').each(function(){ var elm = $(this) - elm.css('order', elm.attr('data-order-' + sortType)); + elm.parent().css('order', elm.attr('data-order-' + sortType)); }) } diff --git a/app/views/steps/attachments/_item.html.erb b/app/views/steps/attachments/_item.html.erb index 6bd3c5815..b4190dfcf 100644 --- a/app/views/steps/attachments/_item.html.erb +++ b/app/views/steps/attachments/_item.html.erb @@ -1,8 +1,7 @@ -