CRM-16142 - Add confirm dialog title
authorColeman Watts <coleman@civicrm.org>
Fri, 20 Mar 2015 00:34:48 +0000 (20:34 -0400)
committerColeman Watts <coleman@civicrm.org>
Fri, 20 Mar 2015 00:34:48 +0000 (20:34 -0400)
js/angular-crmMailing/directives.js
partials/crmMailing/preview.html

index aa32d86083544cac119b7cebd50533a7b85495ef..25267923751b6c0e4309ee0564b3ab5ccf0417bc 100644 (file)
@@ -65,6 +65,7 @@
         scope.previewTestGroup = function(e) {
           var $dialog = $(this);
           $dialog.html('<div class="crm-loading-element"></div>');
+          $dialog.dialog('option', 'title', ts('Send to %1', {1: _.pluck(_.where(scope.crmMailingConst.groupNames, {id: scope.testGroup.gid}), 'title')[0]}));
           CRM.api3('contact', 'get', {group: scope.testGroup.gid, options: {limit: 0}, return: 'display_name,email'}).done(function(data) {
             var count = 0,
               // Fixme: should this be in a template?
index 9a514d4f409988a7ff4cb6ad52090c20a661821d..e53921b198a0b290735930a0638cf6da4c6b52fa 100644 (file)
@@ -52,7 +52,7 @@ Vars: mailing:obj, testContact:obj, testGroup:obj, crmMailing:FormController
         <option value=""></option>
       </select>
     </div>
-    <button crm-icon="mail-closed" title="{{ts('Send to group')}}" ng-disabled="crmMailing.$invalid || !testGroup.gid" crm-confirm="{resizable: true, width: '40%', height: '40%', open: previewTestGroup}" on-yes="doSend({gid: testGroup.gid})">{{ts('Send test')}}</button>
+    <button crm-icon="mail-closed" ng-disabled="crmMailing.$invalid || !testGroup.gid" crm-confirm="{resizable: true, width: '40%', height: '40%', open: previewTestGroup}" on-yes="doSend({gid: testGroup.gid})">{{ts('Send test')}}</button>
   </div>
   <div class="clear"></div>
 </div>