X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=js%2Fangular-crmAttachment.js;h=815ae36b84c01b455458e3214f05af3dd05ebc51;hb=43e5f0f62d03d30d5b9d54ff2c87f1f7e507a3cf;hp=b9957c831cf9cb68e422258663bf613e4ccba5cd;hpb=64e59809d10c3ff342718a28f42983ec217dc282;p=civicrm-core.git diff --git a/js/angular-crmAttachment.js b/js/angular-crmAttachment.js index b9957c831c..815ae36b84 100644 --- a/js/angular-crmAttachment.js +++ b/js/angular-crmAttachment.js @@ -1,7 +1,7 @@ /// crmFile: Manage file attachments (function (angular, $, _) { var partialUrl = function (relPath) { - return CRM.resourceUrls['civicrm'] + '/partials/crmAttachment/' + relPath; + return CRM.resourceUrls.civicrm + '/partials/crmAttachment/' + relPath; }; angular.module('crmAttachment', ['angularFileUpload']); @@ -76,7 +76,7 @@ var newItems = crmAttachments.uploader.getNotUploadedItems(); if (newItems.length > 0) { _.each(newItems, function (item) { - item.formData = [_.extend({}, target, item.crmData)]; + item.formData = [_.extend({crm_attachment_token: CRM.crmAttachment.token}, target, item.crmData)]; }); crmAttachments.uploader.onCompleteAll = function onCompleteAll() { delete crmAttachments.uploader.onCompleteAll;