Skip to content

Commit

Permalink
refs #41429. Ensure tokenInput init for event_id field
Browse files Browse the repository at this point in the history
  • Loading branch information
poliphilochu committed Oct 4, 2024
1 parent 2659f33 commit 6254d9e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/CRM/Event/Form/Search/Common.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ var eventUrl = "{/literal}{$dataURLEvent}{literal}";
{/if}
{literal}

if (!cj(".crm-accordion-wrapper #event_id ~ .token-input-list-facebook").length) {
cj(".crm-accordion-wrapper #event_id").tokenInput( eventUrl, { prePopulate: eventPrepopulate, classes: tokenClass, hintText: hintText });
}
cj(".crm-accordion-wrapper").on("crmaccordion:open", function() {
if (!cj(".crm-accordion-wrapper #event_id ~ .token-input-list-facebook").length) {
cj(".crm-accordion-wrapper #event_id").tokenInput( eventUrl, { prePopulate: eventPrepopulate, classes: tokenClass, hintText: hintText });
Expand Down

0 comments on commit 6254d9e

Please sign in to comment.