From d376f33ea6f44726e3c31f4f319a45aca3eaa531 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 29 Jan 2015 19:25:34 -0800 Subject: [PATCH] crmMailing - Comments/cleanup --- js/angular-crm-ui.js | 15 +++++++++++++-- js/angular-crmMailing.js | 6 +++--- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/js/angular-crm-ui.js b/js/angular-crm-ui.js index 44b19bdb28..2bc7019931 100644 --- a/js/angular-crm-ui.js +++ b/js/angular-crm-ui.js @@ -23,8 +23,10 @@ }; }) + // Display a date widget. // example: // example: + // WISHLIST: use ngModel .directive('crmUiDate', function ($parse, $timeout) { return { restrict: 'AE', @@ -59,7 +61,9 @@ }; }) + // Display a date-time widget. // example:
+ // WISHLIST: use ngModel .directive('crmUiDateTime', function ($parse) { return { restrict: 'AE', @@ -203,6 +207,7 @@ }; }) + // Define a scope in which a name like "subform.foo" maps to a unique ID. // example:
.directive('crmUiIdScope', function () { return { @@ -222,6 +227,7 @@ }; }) + // Display an HTML blurb inside an IFRAME. // example: .directive('crmUiIframe', function ($parse) { return { @@ -251,12 +257,13 @@ }; scope.$parent.$watch(attrs.crmUiIframe, refresh); - //setTimeout(function () { refresh(); }, 50); } }; }) + // Define a rich text editor. // example: + // WISHLIST: use ngModel .directive('crmUiRichtext', function ($timeout) { return { require: '?ngModel', @@ -286,6 +293,7 @@ }; }) + // Display a lock icon (based on a boolean). // example: // example: .directive('crmUiSelect', function ($parse, $timeout) { return { @@ -427,7 +436,9 @@ }; }) + // Display a time-entry field. // example: + // WISHLIST: use ngModel .directive('crmUiTime', function ($parse, $timeout) { return { restrict: 'AE', @@ -458,9 +469,9 @@ }; }) + // Generic, field-independent form validator. // example: // example: - // Generic, field-independent validator. .directive('crmUiValidate', function() { return { restrict: 'EA', diff --git a/js/angular-crmMailing.js b/js/angular-crmMailing.js index 8881051f6d..889f8af88a 100644 --- a/js/angular-crmMailing.js +++ b/js/angular-crmMailing.js @@ -279,7 +279,7 @@ // Controller for the "Preview Mailing Component" segment // which displays header/footer/auto-responder - angular.module('crmMailing').controller('PreviewComponentCtrl', function PreviewMailingDialogCtrl($scope, dialogService) { + angular.module('crmMailing').controller('PreviewComponentCtrl', function PreviewComponentCtrl($scope, dialogService) { var ts = $scope.ts = CRM.ts(null); $scope.previewComponent = function previewComponent(title, componentId) { @@ -299,13 +299,13 @@ }; }); - // Controller for the "Preview Mailing" dialog + // Controller for the "Preview Mailing Component" dialog // Note: Expects $scope.model to be an object with properties: // - "name" // - "subject" // - "body_html" // - "body_text" - angular.module('crmMailing').controller('PreviewComponentDialogCtrl', function PreviewMailingDialogCtrl($scope) { + angular.module('crmMailing').controller('PreviewComponentDialogCtrl', function PreviewComponentDialogCtrl($scope) { $scope.ts = CRM.ts(null); }); -- 2.25.1