X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=ang%2FcrmAttachment.js;h=16bb212553c6e1bb6b038984b15f75fc7e479213;hb=0800bc59a47fd6cfe2f4463207e9e47d7a0edfc4;hp=b89fe4ca22ef336563860325dccb2dee73f95db2;hpb=448f46217516ee0ee979d2a7fac0a45d0f8d1b97;p=civicrm-core.git diff --git a/ang/crmAttachment.js b/ang/crmAttachment.js index b89fe4ca22..16bb212553 100644 --- a/ang/crmAttachment.js +++ b/ang/crmAttachment.js @@ -156,6 +156,11 @@ var model = $parse(attr.crmAttachments); scope.att = model(scope.$parent); scope.ts = CRM.ts(null); + CRM.api4('Setting', 'get', { + select: ["maxFileSize"] + }).then(function(settings) { + scope.max_size = settings[0].value; + }); scope.inclUrl = '~/crmAttachment/attachments.html'; // delay rendering of child tree until after model has been populated