Change _.sorBy to _.sortBy

stable
David Barragán Merino 2015-01-28 14:38:36 +01:00
parent 21b9369007
commit 5e77c42cc0
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ class AttachmentsController extends taiga.Controller
return @repo.saveAll(@.attachments).then null, => return @repo.saveAll(@.attachments).then null, =>
for item in @.attachments for item in @.attachments
item.revert() item.revert()
@.attachments = _.sorBy(@.attachments, "order") @.attachments = _.sortBy(@.attachments, "order")
# Remove one concrete attachment. # Remove one concrete attachment.
removeAttachment: (attachment) -> removeAttachment: (attachment) ->