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.off()
el.remove() el.remove()
BacklogSortableDirective = ($repo, $rs, $rootscope) -> BacklogSortableDirective = ($repo, $rs, $rootscope) ->
# Notes about jquery bug: # Notes about jquery bug:
# http://stackoverflow.com/questions/5791886/jquery-draggable-shows- # http://stackoverflow.com/questions/5791886/jquery-draggable-shows-
@ -48,7 +47,8 @@ BacklogSortableDirective = ($repo, $rs, $rootscope) ->
link = ($scope, $el, $attrs) -> link = ($scope, $el, $attrs) ->
bindOnce $scope, "project", (project) -> bindOnce $scope, "project", (project) ->
# If the user has not enough permissions we don't enable the sortable # 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({ $el.sortable({
connectWith: ".sprint-table" connectWith: ".sprint-table"