remove deprecated class when the an attachment is not deprecated

stable
Juanfran 2015-06-17 07:56:44 +02:00
parent c3e17c0a0e
commit 60ce19b7e2
1 changed files with 2 additions and 0 deletions

View File

@ -277,6 +277,8 @@ AttachmentDirective = ($template, $compile, $translate) ->
if attachment.is_deprecated if attachment.is_deprecated
$el.addClass("deprecated") $el.addClass("deprecated")
$el.find("input:checkbox").prop('checked', true) $el.find("input:checkbox").prop('checked', true)
else
$el.removeClass("deprecated")
saveAttachment = -> saveAttachment = ->
attachment.description = $el.find("input[name='description']").val() attachment.description = $el.find("input[name='description']").val()