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>
Wed, 15 Nov 2017 17:28:43 +0000 (12:28 -0500)
ang/crmMailing/EditRecipCtrl.js

index 607ab2cb99761f2ec5f09f4025e5bf0d70a4132f..c6d421fb5058ffa3c6838975590b52342a393af6 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,