diff --git a/app/coffee/modules/backlog/sortable.coffee b/app/coffee/modules/backlog/sortable.coffee index 96d74f0f..6d1bc2f8 100644 --- a/app/coffee/modules/backlog/sortable.coffee +++ b/app/coffee/modules/backlog/sortable.coffee @@ -54,7 +54,8 @@ BacklogSortableDirective = ($repo, $rs, $rootscope, $tgConfirm) -> return filterError = -> - $tgConfirm.notify("error", "You can't drop on backlog when filters are open") #TODO: i18n + text = $translate.instant("BACKLOG.SORTABLE_FILTER_ERROR") + $tgConfirm.notify("error", text) $el.sortable({ items: ".us-item-row", @@ -99,6 +100,9 @@ BacklogSortableDirective = ($repo, $rs, $rootscope, $tgConfirm) -> if $(ui.items[0]).parent().length == 0 return + if $el.hasClass("active-filters") + return + items = _.sortBy ui.items, (item) -> return $(item).index()