Merge remote-tracking branch 'upstream/master' into pledge-batchentry
[civicrm-core.git] / CRM / UF / Page / Field.php
index ae3bdf8e95c7f9071842eeb69d03b1309aaae760..32a549dedba23d2446d564ea6786082c27b0b25d 100644 (file)
@@ -112,7 +112,7 @@ class CRM_UF_Page_Field extends CRM_Core_Page {
   function browse() {
     $resourceManager = CRM_Core_Resources::singleton();
     if (!empty($_GET['new']) && $resourceManager->ajaxPopupsEnabled) {
-      $resourceManager->addScriptFile('civicrm', 'js/crm.addNew.js', 999);
+      $resourceManager->addScriptFile('civicrm', 'js/crm.addNew.js', 999, 'html-header');
     }
 
     $ufField = array();
@@ -204,7 +204,7 @@ class CRM_UF_Page_Field extends CRM_Core_Page {
   }
 
   /**
-   * edit CiviCRM Profile data.
+   * Edit CiviCRM Profile data.
    *
    * editing would involved modifying existing fields + adding data to new fields.
    *
@@ -283,10 +283,8 @@ class CRM_UF_Page_Field extends CRM_Core_Page {
   /**
    * Preview custom field
    *
-   * @param $fieldId
-   * @param $groupId
-   *
-   * @internal param int $id custom field id
+   * @param int $fieldId custom field id
+   * @param int $groupId
    *
    * @return void
    * @access public