From: Ruben Rodriguez Date: Wed, 15 Nov 2017 17:28:43 +0000 (-0500) Subject: Disable recipient estimation on mailings X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8fb11cb4dbc56566ed68865d4768abd9b84319e6;p=civicrm-core.git Disable recipient estimation on mailings --- diff --git a/ang/crmMailing/EditRecipCtrl.js b/ang/crmMailing/EditRecipCtrl.js index 304b56959e..f897b789fc 100644 --- a/ang/crmMailing/EditRecipCtrl.js +++ b/ang/crmMailing/EditRecipCtrl.js @@ -23,6 +23,11 @@ $scope.permitRecipientRebuild = 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...'); @@ -52,6 +57,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() { if (!$scope.mailing) { return; @@ -79,6 +89,11 @@ $scope.$watchCollection("permitRecipientRebuild", refreshSetting); $scope.previewRecipients = function previewRecipients() { + + // quidam Tue Nov 14 17:29:27 EST 2017 + // we don't want to estimate the recipient size + return; + var model = { count: $scope.recipients, sample: crmMailingCache.get('mailing-' + $scope.mailing.id + '-recipient-list'),