We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 351e449 commit 3305e2bCopy full SHA for 3305e2b
app/views/repository_protected_branches/index.html.haml
@@ -43,21 +43,7 @@
43
%p{ class: 'nodata' }= l(:label_no_data)
44
45
:javascript
46
- // Return a helper with preserved width of cells
47
- var fixHelper = function(e, ui) {
48
- ui.children().each(function() {
49
- $(this).width($(this).width());
50
- });
51
- return ui;
52
- };
53
-
54
$(document).ready(function() {
55
initModalBoxes(modals);
56
- $('#protected_branches tbody').sortable({
57
- helper: fixHelper,
58
- axis: 'y',
59
- update: function(event, ui) {
60
- $.post($('#protected_branches').data('update-url'), $(this).sortable('serialize'));
61
- }
62
+ setSortableElement('#protected_branches tbody', '#protected_branches');
63
});
0 commit comments