             promise.then ->
                 $confirm.notify("success")
                 $rootscope.$broadcast("history:reload")
-                $el.find('div.edit-description').hide()
-                $el.find('div.view-description').show()
+                $el.find('.edit-description').hide()
+                $el.find('.view-description').show()
             promise.then null, ->
                 $confirm.notify("error")
             promise.finally ->

            return if not isEditable()
            target = angular.element(event.target)
            if not target.is('a')
                $el.find('div.edit-description').show()
                $el.find('div.view-description').hide()
                $el.find('textarea').focus()

        $el.on "click", ".save", ->

    """ # TODO: i18n

    link = ($scope, $el, $attrs, $model) ->
        $el.find('.edit-description').hide()
        $el.find('.view-description .edit').hide()

        isEditable = ->
            return $scope.project.my_permissions.indexOf($attrs.requiredPerm) != -1
