projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
AngularJS - Remove UI-Utils library
[civicrm-core.git]
/
ang
/
crmUi.ang.php
diff --git
a/ang/crmUi.ang.php
b/ang/crmUi.ang.php
index c3cddd3466f2cd55d9cea4243ec7d6c27b5075ef..0cdb8d9f5ad920b7f3eeb017d367552f49e114d1 100644
(file)
--- a/
ang/crmUi.ang.php
+++ b/
ang/crmUi.ang.php
@@
-1,17
+1,17
@@
<?php
// This file declares an Angular module which can be autoloaded
<?php
// This file declares an Angular module which can be autoloaded
-$is
Debug = Civi::settings()->get('debug_enabled
');
+$is
Pretty = \Civi::settings()->get('debug_enabled') && !defined('CIVICRM_KARMA
');
return [
'ext' => 'civicrm',
'js' => ['ang/crmUi.js'],
'partials' => ['ang/crmUi'],
return [
'ext' => 'civicrm',
'js' => ['ang/crmUi.js'],
'partials' => ['ang/crmUi'],
+ 'css' => ['ang/crmUI.css'],
'requires' => array_merge(
[
'crmResource',
'requires' => array_merge(
[
'crmResource',
- 'ui.utils',
],
// Only require the +10kb if we're likely to need it.
],
// Only require the +10kb if we're likely to need it.
- $is
Debug
? ['jsonFormatter'] : []
+ $is
Pretty
? ['jsonFormatter'] : []
),
];
),
];