X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FForm%2FSearch.php;h=cd650775fa541bc56cbc31f61ad6bc82abdad951;hb=a13f3d8c01e114b11c381b6ac3e64becae9380b1;hp=d593639c3e4eae03d5e79948f156b3113350c579;hpb=13607d6e9346d7adeef72866afb4ded9046305d0;p=civicrm-core.git diff --git a/CRM/Core/Form/Search.php b/CRM/Core/Form/Search.php index d593639c3e..cd650775fa 100644 --- a/CRM/Core/Form/Search.php +++ b/CRM/Core/Form/Search.php @@ -1,7 +1,7 @@ ajaxPopupsEnabled) { @@ -88,7 +82,7 @@ class CRM_Core_Form_Search extends CRM_Core_Form { $this->assign('includeWysiwygEditor', TRUE); } - $resources->addScriptFile('civicrm', 'js/crm.searchForm.js'); + $resources->addScriptFile('civicrm', 'js/crm.searchForm.js', 1, 'html-header'); $this->addButtons(array( array( @@ -104,7 +98,7 @@ class CRM_Core_Form_Search extends CRM_Core_Form { /** * Add checkboxes for each row plus a master checkbox */ - function addRowSelectors($rows) { + public function addRowSelectors($rows) { $this->addElement('checkbox', 'toggleSelect', NULL, NULL, array('class' => 'select-rows')); foreach ($rows as $row) { $this->addElement('checkbox', $row['checkbox'], NULL, NULL, array('class' => 'select-row')); @@ -115,7 +109,7 @@ class CRM_Core_Form_Search extends CRM_Core_Form { * Add actions menu to search results form * @param $tasks */ - function addTaskMenu($tasks) { + public function addTaskMenu($tasks) { if (is_array($tasks) && !empty($tasks)) { $tasks = array('' => ts('Actions')) + $tasks; $this->add('select', 'task', NULL, $tasks, FALSE, array('class' => 'crm-select2 crm-action-menu huge crm-search-result-actions'));