crmCaseType.controller('CaseTypeCtrl', function($scope, crmApi, apiCalls) {
$scope.partialUrl = partialUrl;
- var ts = $scope.ts = CRM.ts('CiviCase');
+ var ts = $scope.ts = CRM.ts(null);
$scope.activityStatuses = _.values(apiCalls.actStatuses.values);
$scope.activityTypes = apiCalls.actTypes.values;
$scope.crmMailingConst = CRM.crmMailing;
$scope.partialUrl = partialUrl;
- var ts = $scope.ts = CRM.ts('CiviMail');
+ var ts = $scope.ts = CRM.ts(null);
$scope.isSubmitted = function isSubmitted() {
return _.size($scope.mailing.jobs) > 0;
// - [input] mailing: object
// - [output] recipients: array of recipient records
angular.module('crmMailing').controller('EditRecipCtrl', function EditRecipCtrl($scope, dialogService, crmApi, crmMailingMgr) {
- var ts = $scope.ts = CRM.ts('CiviMail');
+ var ts = $scope.ts = CRM.ts(null);
$scope.recipients = null;
$scope.getRecipientsEstimate = function () {
var ts = $scope.ts;
// Note: Expects $scope.model to be an object with properties:
// - recipients: array of contacts
angular.module('crmMailing').controller('PreviewRecipCtrl', function ($scope) {
- $scope.ts = CRM.ts('CiviMail');
+ $scope.ts = CRM.ts(null);
});
// Controller for the "Preview Mailing" dialog
// - "body_html"
// - "body_text"
angular.module('crmMailing').controller('PreviewMailingDialogCtrl', function PreviewMailingDialogCtrl($scope) {
- $scope.ts = CRM.ts('CiviMail');
+ $scope.ts = CRM.ts(null);
});
// Controller for the "Preview Mailing Component" segment
// which displays header/footer/auto-responder
angular.module('crmMailing').controller('PreviewComponentCtrl', function PreviewMailingDialogCtrl($scope, dialogService) {
- var ts = $scope.ts = CRM.ts('CiviMail');
+ var ts = $scope.ts = CRM.ts(null);
$scope.previewComponent = function previewComponent(title, componentId) {
var component = _.where(CRM.crmMailing.headerfooterList, {id: "" + componentId});
// - "body_html"
// - "body_text"
angular.module('crmMailing').controller('PreviewComponentDialogCtrl', function PreviewMailingDialogCtrl($scope) {
- $scope.ts = CRM.ts('CiviMail');
+ $scope.ts = CRM.ts(null);
});
// Controller for the in-place msg-template management
angular.module('crmMailing').controller('MsgTemplateCtrl', function MsgTemplateCtrl($scope, crmMsgTemplates, dialogService) {
- var ts = $scope.ts = CRM.ts('CiviMail');
+ var ts = $scope.ts = CRM.ts(null);
$scope.crmMsgTemplates = crmMsgTemplates;
// @return Promise MessageTemplate (per APIv3)
// - "msg_text": string
// - "msg_html": string
angular.module('crmMailing').controller('SaveMsgTemplateDialogCtrl', function SaveMsgTemplateDialogCtrl($scope, crmMsgTemplates, dialogService) {
- var ts = $scope.ts = CRM.ts('CiviMail');
+ var ts = $scope.ts = CRM.ts(null);
$scope.saveOpt = {mode: '', newTitle: ''};
$scope.selected = null;
var model = $parse(attr.crmMailing);
scope.mailing = model(scope.$parent);
scope.crmMailingConst = CRM.crmMailing;
- scope.ts = CRM.ts('CiviMail');
+ scope.ts = CRM.ts(null);
scope[directiveName] = attr[directiveName] ? scope.$parent.$eval(attr[directiveName]) : {};
}
};
var mailingModel = $parse(attr.crmMailing);
scope.mailing = mailingModel(scope);
scope.crmMailingConst = CRM.crmMailing;
- scope.ts = CRM.ts('CiviMail');
+ scope.ts = CRM.ts(null);
scope.testContact = {email: CRM.crmMailing.defaultTestEmail};
scope.testGroup = {gid: null};
var mailingModel = $parse(attr.crmMailing);
scope.mailing = mailingModel(scope.$parent);
scope.crmMailingConst = CRM.crmMailing;
- scope.ts = CRM.ts('CiviMail');
+ scope.ts = CRM.ts(null);
scope.previewMailing = function previewMailing(mailing, mode) {
return crmMailingPreviewMgr.preview(mailing, mode);
};
scope.groups = scope.$parent.$eval(attrs.crmAvailGroups);
scope.mailings = scope.$parent.$eval(attrs.crmAvailMailings);
- scope.ts = CRM.ts('CiviMail');
+ scope.ts = CRM.ts(null);
/// Convert MySQL date ("yyyy-mm-dd hh:mm:ss") to JS date object
scope.parseDate = function (date) {
]);
angular.module('crmMailingAB').controller('CrmMailingABListCtrl', function ($scope, mailingABList, crmMailingABCriteria, crmMailingABStatus) {
- var ts = $scope.ts = CRM.ts('CiviMail');
+ var ts = $scope.ts = CRM.ts(null);
$scope.mailingABList = mailingABList.values;
$scope.crmMailingABCriteria = crmMailingABCriteria;
$scope.crmMailingABStatus = crmMailingABStatus;
angular.module('crmMailingAB').controller('CrmMailingABEditCtrl', function ($scope, abtest, crmMailingABCriteria, crmMailingMgr, crmMailingPreviewMgr, crmStatus, $q, $location) {
$scope.abtest = abtest;
- var ts = $scope.ts = CRM.ts('CiviMail');
+ var ts = $scope.ts = CRM.ts(null);
$scope.crmMailingABCriteria = crmMailingABCriteria;
$scope.crmMailingConst = CRM.crmMailing;
$scope.partialUrl = partialUrl;
});
angular.module('crmMailingAB').controller('CrmMailingABReportCtrl', function ($scope, abtest, crmApi, crmMailingPreviewMgr, dialogService) {
- var ts = $scope.ts = CRM.ts('CiviMail');
+ var ts = $scope.ts = CRM.ts(null);
$scope.abtest = abtest;
angular.module('crmMailingAB').controller('CrmMailingABWinnerDialogCtrl', function ($scope, $timeout, dialogService, crmMailingMgr, crmStatus) {
- var ts = $scope.ts = CRM.ts('CiviMail');
+ var ts = $scope.ts = CRM.ts(null);
var abtest = $scope.abtest = $scope.model.abtest;
var mailingName = $scope.model.mailingName;
scope.abtest = model(scope.$parent);
scope.crmMailingConst = CRM.crmMailing;
scope.crmMailingABCriteria = crmMailingABCriteria;
- scope.ts = CRM.ts('CiviMail');
+ scope.ts = CRM.ts(null);
var fieldsModel = $parse(attr[directiveName]);
scope.fields = fieldsModel(scope.$parent);
var sliderTests = $('.slider-test', element);
var sliderWin = $('.slider-win', element);
- scope.ts = CRM.ts('CiviMail');
+ scope.ts = CRM.ts(null);
scope.testValue = 0;
scope.winValue = 100;