[i18n] Minor fix in attachments

stable
David Barragán Merino 2015-05-14 12:01:57 +02:00
parent 8a3c660d23
commit 86f2de66cd
1 changed files with 1 additions and 2 deletions

View File

@ -224,8 +224,7 @@ AttachmentsDirective = ($config, $confirm, $templates, $translate) ->
templateFn = ($el, $attrs) ->
maxFileSize = $config.get("maxUploadFileSize", null)
maxFileSize = sizeFormat(maxFileSize) if maxFileSize
maxFileSizeMsg = if maxFileSize then $translate.instant("ATTACHMENT.MAX_UPLOAD_SIZE") else ""
maxFileSize = 4000
maxFileSizeMsg = if maxFileSize then $translate.instant("ATTACHMENT.MAX_UPLOAD_SIZE", {maxFileSize: maxFileSize}) else ""
ctx = {
type: $attrs.type
maxFileSize: maxFileSize