Merge pull request #457 from taigaio/issue-2630-taiga-reordered-my-backlog
Fixing reordering issue when filters enabled, error message was shown bu...stable
commit
d49905458f
|
@ -55,7 +55,7 @@ BacklogSortableDirective = ($repo, $rs, $rootscope, $tgConfirm, $translate) ->
|
|||
|
||||
filterError = ->
|
||||
text = $translate.instant("BACKLOG.SORTABLE_FILTER_ERROR")
|
||||
$tgConfirm.notify(text)
|
||||
$tgConfirm.notify("error", text)
|
||||
|
||||
$el.sortable({
|
||||
items: ".us-item-row",
|
||||
|
@ -100,6 +100,9 @@ BacklogSortableDirective = ($repo, $rs, $rootscope, $tgConfirm, $translate) ->
|
|||
if $(ui.items[0]).parent().length == 0
|
||||
return
|
||||
|
||||
if $el.hasClass("active-filters")
|
||||
return
|
||||
|
||||
items = _.sortBy ui.items, (item) ->
|
||||
return $(item).index()
|
||||
|
||||
|
|
Loading…
Reference in New Issue