Disable recipient estimation on mailings
authorRuben Rodriguez <ruben@fsf.org>
Wed, 15 Nov 2017 17:28:43 +0000 (12:28 -0500)
committerRuben Rodriguez <ruben@fsf.org>
Thu, 16 Apr 2020 17:25:55 +0000 (13:25 -0400)
ang/crmMailing/EditRecipCtrl.js

index 9fca637a73d8be3edf87b04e009f1487de97bffb..d9ba57bb88dfb29c082186886160da5c3b9c1547 100644 (file)
     $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...');
     // 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;
     $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'),