             if project.my_permissions.indexOf("modify_us") > -1
                 clickable = true
                 $el.on "click", (event) =>
-                    if $el.find('a').hasClass('noclick')
+                    if $el.find("a").hasClass("noclick")
                         return
 
                     us = $model.$modelValue

KanbanUserstoryDirective = ($rootscope) ->
    link = ($scope, $el, $attrs, $model) ->
        $el.find(".icon-edit").on "click", (event) ->
            if $el.find('.icon-edit').hasClass('noclick')
                return
            $scope.$apply ->
                $rootscope.$broadcast("usform:edit", $model.$modelValue)
        if $scope.us.is_blocked
            $el.addClass('blocked')
        $el.disableSelection()

    return {

        $el.disableSelection()

        redrawWipLimit = ->
            $el.find(".kanban-wip-limit").remove()
            timeout 200, ->
                element = $el.find(".kanban-task")[$scope.status.wip_limit]
                if element
                    angular.element(element).before("<div class='kanban-wip-limit'></div>")

        $scope.$on "redraw:wip", redrawWipLimit
        $scope.$on "kanban:us:move", redrawWipLimit
