Remove one level of indentation on backlog sortable module.

stable
Andrey Antukh 2014-09-05 22:14:51 +02:00
parent 5ec1925057
commit c5958ba32d
1 changed files with 35 additions and 35 deletions

View File

@ -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"