From: Tim Otten Date: Thu, 30 Oct 2014 02:15:11 +0000 (-0700) Subject: CRM-15578 - crmMailing2 - Skeleton for new page X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=030dce01025e464c0d15b7509161e747f72b60b5;p=civicrm-core.git CRM-15578 - crmMailing2 - Skeleton for new page --- diff --git a/CRM/Mailing/Info.php b/CRM/Mailing/Info.php index 7eb682851f..d8d9a2ac0d 100644 --- a/CRM/Mailing/Info.php +++ b/CRM/Mailing/Info.php @@ -59,7 +59,15 @@ class CRM_Mailing_Info extends CRM_Core_Component_Info { $result = array(); $result['crmMailing'] = array( 'ext' => 'civicrm', - 'js' => array('js/angular-Mailing.js' , 'js/angularsanitize.js' , 'packages/ckeditor/ckeditor.js'), + 'js' => array( + 'js/angular-Mailing.js' , + 'js/angularsanitize.js' , + 'packages/ckeditor/ckeditor.js' + ), + ); + $result['crmMailing2'] = array( + 'ext' => 'civicrm', + 'js' => array('js/angular-crmMailing2.js'), ); $result['crmMailingAB'] = array( 'ext' => 'civicrm', diff --git a/js/angular-crm-ui.js b/js/angular-crm-ui.js index 793750e8d2..502db37919 100644 --- a/js/angular-crm-ui.js +++ b/js/angular-crm-ui.js @@ -3,6 +3,19 @@ var idCount = 0; angular.module('crmUi', []) + + // example
...content...
+ .directive('crmUiAccordion', function() { + return { + scope: { + crmTitle: '@' + }, + template: '
(Accordion: {{$parent.$eval(crmTitle)}})
', + transclude: true, + link: function (scope, element, attrs) {} + }; + }) + // example:
...