activeadmin_reorderable icon indicating copy to clipboard operation
activeadmin_reorderable copied to clipboard

feature Add support for reordering for belongs_to resources

Open delphist opened this issue 8 years ago • 4 comments

#3

delphist avatar Apr 11 '17 08:04 delphist

I would love to see this merged. However, I think this might be the better way to go?

reorder_url, query_params = active_admin_resource_for(resource.class).route_instance_path(resource).split '?', 2
reorder_url += "/reorder"
reorder_url += "?" + query_params if query_params
span(reorder_handle_content, :class => 'reorder-handle', 'data-reorder-url' => reorder_url)

yjukaku avatar Jan 17 '18 16:01 yjukaku

@yjukaku need to check it, maybe yes – hard to remember where i'm used it to reproduce the bug. Give me some time, please

delphist avatar Jan 17 '18 16:01 delphist

@delphist Any update on whether @yjukaku's suggestion works? Also, would you mind fixing the conflict with master?

dkniffin avatar Feb 24 '21 02:02 dkniffin