From ff01d55ddce7aa8b137e2277454f60f31c0dcd2d Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 19 Mar 2015 20:34:48 -0400 Subject: [PATCH] CRM-16142 - Add confirm dialog title --- js/angular-crmMailing/directives.js | 1 + partials/crmMailing/preview.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/js/angular-crmMailing/directives.js b/js/angular-crmMailing/directives.js index aa32d86083..2526792375 100644 --- a/js/angular-crmMailing/directives.js +++ b/js/angular-crmMailing/directives.js @@ -65,6 +65,7 @@ scope.previewTestGroup = function(e) { var $dialog = $(this); $dialog.html('
'); + $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? diff --git a/partials/crmMailing/preview.html b/partials/crmMailing/preview.html index 9a514d4f40..e53921b198 100644 --- a/partials/crmMailing/preview.html +++ b/partials/crmMailing/preview.html @@ -52,7 +52,7 @@ Vars: mailing:obj, testContact:obj, testGroup:obj, crmMailing:FormController - +
-- 2.25.1