From d0dbdfb75cd51c0e546968e1204f1327dde45caf Mon Sep 17 00:00:00 2001 From: Ruben Rodriguez Date: Wed, 15 Nov 2017 12:28:43 -0500 Subject: [PATCH] Disable recipient estimation on mailings --- ang/crmMailing/EditRecipCtrl.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/ang/crmMailing/EditRecipCtrl.js b/ang/crmMailing/EditRecipCtrl.js index 16c125f8cf..d4d3cd3ce5 100644 --- a/ang/crmMailing/EditRecipCtrl.js +++ b/ang/crmMailing/EditRecipCtrl.js @@ -19,6 +19,11 @@ $scope.recipients = null; $scope.getRecipientsEstimate = function() { + + // quidam Tue Nov 14 17:29:27 EST 2017 + // we don't want to estimate the recipient size + return; + var ts = $scope.ts; if ($scope.recipients === null) { return ts('(Estimating)'); @@ -35,6 +40,11 @@ // We monitor four fields -- use debounce so that changes across the // four fields can settle-down before AJAX. var refreshRecipients = _.debounce(function() { + + // quidam Tue Nov 14 17:29:27 EST 2017 + // we don't want to estimate the recipient size + return; + $scope.$apply(function() { $scope.recipients = null; if (!$scope.mailing) { @@ -54,6 +64,11 @@ $scope.$watchCollection("mailing.recipients.mailings.exclude", refreshRecipients); $scope.previewRecipients = function previewRecipients() { + + // quidam Tue Nov 14 17:29:27 EST 2017 + // we don't want to estimate the recipient size + return; + return crmStatus({start: ts('Previewing...'), success: ''}, crmMailingMgr.previewRecipients($scope.mailing, RECIPIENTS_PREVIEW_LIMIT).then(function(recipients) { var model = { count: $scope.recipients, -- 2.25.1