X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=ang%2FcrmAttachment.js;h=16bb212553c6e1bb6b038984b15f75fc7e479213;hb=be3c7eb35b2de89ef83eb63b767fa72e0bfeccc8;hp=b89fe4ca22ef336563860325dccb2dee73f95db2;hpb=d440ff56b20209ece52dc70d775d75af44fff05a;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