Disable recipient estimation on mailings
authorRuben Rodriguez <ruben@fsf.org>
Wed, 15 Nov 2017 17:28:43 +0000 (12:28 -0500)
committerAndrew Engelbrecht <andrew@fsf.org>
Wed, 20 Dec 2017 20:53:01 +0000 (15:53 -0500)
ang/crmMailing/EditRecipCtrl.js

index 16c125f8cfcad2fd5f50663615392202f6137b4d..d4d3cd3ce5272b14cde22ec62ffcacf4f1d1f8f2 100644 (file)
 
     $scope.recipients = 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() {
         $scope.recipients = null;
         if (!$scope.mailing) {
     $scope.$watchCollection("mailing.recipients.mailings.exclude", refreshRecipients);
 
     $scope.previewRecipients = function previewRecipients() {
+
+      // quidam Tue Nov 14 17:29:27 EST 2017
+      // we don't want to estimate the recipient size
+      return;
+
       return crmStatus({start: ts('Previewing...'), success: ''}, crmMailingMgr.previewRecipients($scope.mailing, RECIPIENTS_PREVIEW_LIMIT).then(function(recipients) {
         var model = {
           count: $scope.recipients,