projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(NFC) Fix possible flacky tests by splitting the parts of the checksum up so that...
[civicrm-core.git]
/
ang
/
crmAttachment.js
diff --git
a/ang/crmAttachment.js
b/ang/crmAttachment.js
index b89fe4ca22ef336563860325dccb2dee73f95db2..16bb212553c6e1bb6b038984b15f75fc7e479213 100644
(file)
--- 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);
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
scope.inclUrl = '~/crmAttachment/attachments.html';
// delay rendering of child tree until after model has been populated