* @static
*/
function browse() {
+ $resourceManager = CRM_Core_Resources::singleton();
+ if (!empty($_GET['new']) && $resourceManager->ajaxPopupsEnabled) {
+ $resourceManager->addScriptFile('civicrm', 'js/crm.addNew.js', 999, 'html-header');
+ }
+
$ufField = array();
$ufFieldBAO = new CRM_Core_BAO_UFField();
}
/**
- * edit CiviCRM Profile data.
+ * Edit CiviCRM Profile data.
*
* editing would involved modifying existing fields + adding data to new fields.
*
/**
* Preview custom field
*
- * @param int $id custom field id
+ * @param int $fieldId custom field id
+ * @param int $groupId
*
* @return void
* @access public