Fixing reordering issue when filters enabled, error message was shown but order was updated anyway

stable
Alejandro Alonso 2015-05-05 07:34:46 +02:00
parent c7b2b423ce
commit 572989b836
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()