Commit 610462e4 authored by mattwire's avatar mattwire
Browse files

Only load 'task' js/css resources when we may have a task selector on the page...

Only load 'task' js/css resources when we may have a task selector on the page - fixes 'ManageEvent participants opens in popup when it should not'
parent a73813a0
......@@ -285,9 +285,12 @@ function advanced_events_civicrm_pageRun(&$page) {
* @param $form
*/
function advanced_events_civicrm_buildForm($formName, &$form) {
CRM_Core_Resources::singleton()
->addScriptFile('civicrm', 'js/crm.searchForm.js', 1, 'html-header')
->addStyleFile('civicrm', 'css/searchForm.css', 1, 'html-header');
if ($formName == 'CRM_Event_Form_ManageEvent_EventInfo') {
CRM_Core_Resources::singleton()
->addScriptFile('civicrm', 'js/crm.searchForm.js', 1, 'html-header')
->addStyleFile('civicrm', 'css/searchForm.css', 1, 'html-header');
}
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment