Skip to content

Commit e4cf794

Browse files
committed
Fixed jquery sortable with scrolling issue
1 parent ff82155 commit e4cf794

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

app/views/human_resource_items/index.html.erb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,12 @@
4242
<% end %>
4343

4444
<%= javascript_tag do %>
45-
$(function() { $("table.resource_items tbody").positionedItems(); });
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+
});
4653
<% end %>

0 commit comments

Comments
 (0)