Remove one level of indentation on backlog sortable module.
parent
5ec1925057
commit
c5958ba32d
|
@ -39,7 +39,6 @@ deleteElement = (el) ->
|
|||
el.off()
|
||||
el.remove()
|
||||
|
||||
|
||||
BacklogSortableDirective = ($repo, $rs, $rootscope) ->
|
||||
# Notes about jquery bug:
|
||||
# http://stackoverflow.com/questions/5791886/jquery-draggable-shows-
|
||||
|
@ -48,7 +47,8 @@ BacklogSortableDirective = ($repo, $rs, $rootscope) ->
|
|||
link = ($scope, $el, $attrs) ->
|
||||
bindOnce $scope, "project", (project) ->
|
||||
# If the user has not enough permissions we don't enable the sortable
|
||||
if project.my_permissions.indexOf("modify_us") > -1
|
||||
if not (project.my_permissions.indexOf("modify_us") > -1)
|
||||
return
|
||||
|
||||
$el.sortable({
|
||||
connectWith: ".sprint-table"
|
||||
|
|
Loading…
Reference in New Issue