Exclude info rows from milestone sorting items
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
04e8b5184f
commit
d3d0775acd
3 changed files with 4 additions and 2 deletions
|
@ -55,6 +55,7 @@ class Milestone
|
|||
$("#issues-list-unassigned, #issues-list-ongoing, #issues-list-closed").sortable(
|
||||
connectWith: ".issues-sortable-list",
|
||||
dropOnEmpty: true,
|
||||
items: "li:not(.ui-sort-disabled)",
|
||||
update: (event, ui) ->
|
||||
data = $(this).sortable("serialize")
|
||||
Milestone.sortIssues(data)
|
||||
|
@ -83,6 +84,7 @@ class Milestone
|
|||
$("#merge_requests-list-unassigned, #merge_requests-list-ongoing, #merge_requests-list-closed").sortable(
|
||||
connectWith: ".merge_requests-sortable-list",
|
||||
dropOnEmpty: true,
|
||||
items: "li:not(.ui-sort-disabled)",
|
||||
update: (event, ui) ->
|
||||
data = $(this).sortable("serialize")
|
||||
Milestone.sortMergeRequests(data)
|
||||
|
|
|
@ -3,4 +3,4 @@
|
|||
%ul{ class: "well-list issues-sortable-list", id: "issues-list-#{id}", "data-state" => id }
|
||||
- issues.sort_by(&:position).each do |issue|
|
||||
= render 'issue', issue: issue
|
||||
%li.light Drag and drop available
|
||||
%li.light.ui-sort-disabled Drag and drop available
|
||||
|
|
|
@ -3,4 +3,4 @@
|
|||
%ul{ class: "well-list merge_requests-sortable-list", id: "merge_requests-list-#{id}", "data-state" => id }
|
||||
- merge_requests.sort_by(&:position).each do |merge_request|
|
||||
= render 'merge_request', merge_request: merge_request
|
||||
%li.light Drag and drop available
|
||||
%li.light.ui-sort-disabled Drag and drop available
|
||||
|
|
Loading…
Reference in a new issue