projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CRM-15295 - Show 'new item' after creating a container
[civicrm-core.git]
/
CRM
/
Custom
/
Page
/
Field.php
diff --git
a/CRM/Custom/Page/Field.php
b/CRM/Custom/Page/Field.php
index 84507d68085838228f4008628cb4070091792833..2428bc80fdd0170144cde503ba2d55c5f8bd9f27 100644
(file)
--- a/
CRM/Custom/Page/Field.php
+++ b/
CRM/Custom/Page/Field.php
@@
-127,6
+127,11
@@
class CRM_Custom_Page_Field extends CRM_Core_Page {
* @access public
*/
function browse() {
* @access public
*/
function browse() {
+ $resourceManager = CRM_Core_Resources::singleton();
+ if (!empty($_GET['new']) && $resourceManager->ajaxPopupsEnabled) {
+ $resourceManager->addScriptFile('civicrm', 'js/crm.addNew.js', 999);
+ }
+
$customField = array();
$customFieldBAO = new CRM_Core_BAO_CustomField();
$customField = array();
$customFieldBAO = new CRM_Core_BAO_CustomField();