From 8efe133cb040acf61f8d55c0e578474baad3c25b 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 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ang/crmMailing/EditRecipCtrl.js b/ang/crmMailing/EditRecipCtrl.js index 607ab2cb99..c6d421fb50 100644 --- a/ang/crmMailing/EditRecipCtrl.js +++ b/ang/crmMailing/EditRecipCtrl.js @@ -19,6 +19,10 @@ $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 +39,10 @@ // 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) { @@ -52,6 +60,10 @@ $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