From edb34488b987e5a4ca182174bd5e265ab90c0e29 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 15 Jan 2015 18:40:51 -0800 Subject: [PATCH] CRM-15832 - getAngularModules - Cleanup --- CRM/Core/Page/Angular.php | 15 ++++++++++++--- CRM/Mailing/Info.php | 11 ++++++----- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/CRM/Core/Page/Angular.php b/CRM/Core/Page/Angular.php index f2d8e3839b..3bdac40234 100644 --- a/CRM/Core/Page/Angular.php +++ b/CRM/Core/Page/Angular.php @@ -91,7 +91,10 @@ class CRM_Core_Page_Angular extends CRM_Core_Page { 'ext' => 'civicrm', 'js' => array('bower_components/angular-file-upload/angular-file-upload.min.js'), ); - $angularModules['crmApp'] = array('ext' => 'civicrm', 'js' => array('js/angular-crmApp.js')); + $angularModules['crmApp'] = array( + 'ext' => 'civicrm', + 'js' => array('js/angular-crmApp.js'), + ); $angularModules['crmAttachment'] = array( 'ext' => 'civicrm', 'js' => array('js/angular-crmAttachment.js'), @@ -103,13 +106,19 @@ class CRM_Core_Page_Angular extends CRM_Core_Page { 'js' => array('js/angular-crm-ui.js', 'packages/ckeditor/ckeditor.js'), 'partials' => array('partials/crmUi/*.html'), ); - $angularModules['crmUtil'] = array('ext' => 'civicrm', 'js' => array('js/angular-crm-util.js')); + $angularModules['crmUtil'] = array( + 'ext' => 'civicrm', + 'js' => array('js/angular-crm-util.js'), + ); // https://github.com/jwstadler/angular-jquery-dialog-service $angularModules['dialogService'] = array( 'ext' => 'civicrm', 'js' => array('bower_components/angular-jquery-dialog-service/dialog-service.js'), ); - $angularModules['ngSanitize'] = array('ext' => 'civicrm', 'js' => array('js/angular-sanitize.js')); + $angularModules['ngSanitize'] = array( + 'ext' => 'civicrm', + 'js' => array('js/angular-sanitize.js'), + ); $angularModules['ui.utils'] = array( 'ext' => 'civicrm', 'js' => array('bower_components/angular-ui-utils/ui-utils.min.js'), diff --git a/CRM/Mailing/Info.php b/CRM/Mailing/Info.php index d2d0cf68be..d9be4a2975 100644 --- a/CRM/Mailing/Info.php +++ b/CRM/Mailing/Info.php @@ -63,8 +63,7 @@ class CRM_Mailing_Info extends CRM_Core_Component_Info { 'ext' => 'civicrm', 'js' => array( 'js/angular-crmMailing.js', - 'js/angular-crmMailing/services.js', - 'js/angular-crmMailing/directives.js', + 'js/angular-crmMailing/*.js', ), 'css' => array('css/angular-crmMailing.css'), 'partials' => array( @@ -78,8 +77,7 @@ class CRM_Mailing_Info extends CRM_Core_Component_Info { 'ext' => 'civicrm', 'js' => array( 'js/angular-crmMailingAB.js', - 'js/angular-crmMailingAB/services.js', - 'js/angular-crmMailingAB/directives.js', + 'js/angular-crmMailingAB/*.js', ), 'css' => array('css/angular-crmMailingAB.css'), 'partials' => array( @@ -88,7 +86,10 @@ class CRM_Mailing_Info extends CRM_Core_Component_Info { ); $result['crmD3'] = array( 'ext' => 'civicrm', - 'js' => array('js/angular-crmD3.js', 'bower_components/d3/d3.min.js'), + 'js' => array( + 'js/angular-crmD3.js', + 'bower_components/d3/d3.min.js', + ), ); $config = CRM_Core_Config::singleton(); -- 2.25.1