Commit d3d0775acde8dbbb887665c3c52009d76e906d10
1 parent
04e8b518
Exists in
spb-stable
and in
2 other branches
Exclude info rows from milestone sorting items
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
3 changed files
with
4 additions
and
2 deletions
Show diff stats
app/assets/javascripts/milestone.js.coffee
... | ... | @@ -55,6 +55,7 @@ class Milestone |
55 | 55 | $("#issues-list-unassigned, #issues-list-ongoing, #issues-list-closed").sortable( |
56 | 56 | connectWith: ".issues-sortable-list", |
57 | 57 | dropOnEmpty: true, |
58 | + items: "li:not(.ui-sort-disabled)", | |
58 | 59 | update: (event, ui) -> |
59 | 60 | data = $(this).sortable("serialize") |
60 | 61 | Milestone.sortIssues(data) |
... | ... | @@ -83,6 +84,7 @@ class Milestone |
83 | 84 | $("#merge_requests-list-unassigned, #merge_requests-list-ongoing, #merge_requests-list-closed").sortable( |
84 | 85 | connectWith: ".merge_requests-sortable-list", |
85 | 86 | dropOnEmpty: true, |
87 | + items: "li:not(.ui-sort-disabled)", | |
86 | 88 | update: (event, ui) -> |
87 | 89 | data = $(this).sortable("serialize") |
88 | 90 | Milestone.sortMergeRequests(data) | ... | ... |
app/views/projects/milestones/_issues.html.haml
... | ... | @@ -3,4 +3,4 @@ |
3 | 3 | %ul{ class: "well-list issues-sortable-list", id: "issues-list-#{id}", "data-state" => id } |
4 | 4 | - issues.sort_by(&:position).each do |issue| |
5 | 5 | = render 'issue', issue: issue |
6 | - %li.light Drag and drop available | |
6 | + %li.light.ui-sort-disabled Drag and drop available | ... | ... |
app/views/projects/milestones/_merge_requests.html.haml
... | ... | @@ -3,4 +3,4 @@ |
3 | 3 | %ul{ class: "well-list merge_requests-sortable-list", id: "merge_requests-list-#{id}", "data-state" => id } |
4 | 4 | - merge_requests.sort_by(&:position).each do |merge_request| |
5 | 5 | = render 'merge_request', merge_request: merge_request |
6 | - %li.light Drag and drop available | |
6 | + %li.light.ui-sort-disabled Drag and drop available | ... | ... |