CRM-15578 - crmMailing2 - Tweak "Preview" status notification
authorTim Otten <totten@civicrm.org>
Sat, 22 Nov 2014 07:02:30 +0000 (23:02 -0800)
committerTim Otten <totten@civicrm.org>
Sat, 22 Nov 2014 07:02:30 +0000 (23:02 -0800)
js/angular-crmMailing2.js

index 1d3e2c7f7b4f494e20450461c21fb55930cb4619..5c2213b839be4c6b1ba32f76bb568460e3238e69 100644 (file)
     // Open a dialog with a preview of the current mailing
     // @param template string URL of the template to use in the preview dialog
     $scope.previewDialog = function previewDialog(template) {
-      CRM.status(ts('Previewing'));
-      crmMailingMgr
+      var p = crmMailingMgr
         .preview($scope.mailing)
         .then(function(content){
           var options = {
           };
           dialogService.open('previewDialog', template, content, options);
         });
+        CRM.status({start: ts('Previewing'), success: ''}, CRM.toJqPromise(p));
     };
     $scope.sendTestToContact = function sendTestToContact() {
       $scope.sendTest($scope.mailing, $scope.testContact.email, null);