File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
app/views/asset_resource_items Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 29
29
< td class ="name "> <%= link_to i . name , edit_project_asset_resource_item_path ( @project , i ) %> </ td >
30
30
< td class ="date "> <%= format_date ( i . start_date ) %> </ td >
31
31
< td class ="date "> <%= format_date ( i . end_date ) %> </ td >
32
- < td > <%= delete_link project_asset_resource_item_path ( @project , i ) %> </ td >
32
+ < td class ="buttons ">
33
+ <%= reorder_handle ( i , url : project_asset_resource_item_path ( @project , i ) ) %>
34
+ <%= delete_link project_asset_resource_item_path ( @project , i ) %>
35
+ </ td >
33
36
</ tr >
34
37
<% end %>
35
38
</ tbody >
38
41
< p class ="nodata "> <%= l :label_no_data %> </ p >
39
42
<% end %>
40
43
44
+ <%= javascript_tag do %>
45
+ $(function() {
46
+ $("table.resource_items tbody").positionedItems({
47
+ scroll: false,
48
+ sort: function (event, ui) {
49
+ ui.helper.css({'top': ui.position.top + $(window).scrollTop() + 'px'});
50
+ },
51
+ });
52
+ });
53
+ <% end %>
You can’t perform that action at this time.
0 commit comments