Disable recipient estimation on mailings
authorRuben Rodriguez <ruben@fsf.org>
Wed, 15 Nov 2017 17:28:43 +0000 (12:28 -0500)
committerMichael McMahon <michael@fsf.org>
Fri, 20 Oct 2023 18:26:14 +0000 (14:26 -0400)
ang/crmMailing/EditRecipCtrl.js

index cc02c4dea256b1d330a540c3ab51f993035b3ba2..421d623d3c78ba428127732299b3c43f8ff99663 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'),