Merge pull request #457 from taigaio/issue-2630-taiga-reordered-my-backlog

Fixing reordering issue when filters enabled, error message was shown bu...
stable
Juanfran 2015-05-04 22:43:57 -07:00
commit d49905458f
1 changed files with 4 additions and 1 deletions

View File

@ -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()