Disable recipient estimation on mailings
authorRuben Rodriguez <ruben@fsf.org>
Wed, 15 Nov 2017 17:28:43 +0000 (12:28 -0500)
committerRuben Rodriguez <ruben@trisquel.org>
Mon, 5 Jun 2023 20:53:22 +0000 (16:53 -0400)
ang/crmMailing/EditRecipCtrl.js

index 304b56959eaf130b4acff76c0c37dc13d79ebe33..f897b789fce2090e16a201169078d6a1b0f1bdc4 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'),