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=4a68f581092b142f2732476381c5a3c1d0605775;p=civicrm-core.git Disable recipient estimation on mailings --- diff --git a/ang/crmMailing/EditRecipCtrl.js b/ang/crmMailing/EditRecipCtrl.js index cc02c4dea2..421d623d3c 100644 --- a/ang/crmMailing/EditRecipCtrl.js +++ b/ang/crmMailing/EditRecipCtrl.js @@ -18,6 +18,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...'); @@ -47,6 +52,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; @@ -74,6 +84,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'),