/Resources/views/script.html.twig

https://bitbucket.org/cmedia/cmediatagbundle · Twig Template · 9 lines · 9 code · 0 blank · 0 comment · 0 complexity · c3bc3c175863eb272a778eaa087475f2 MD5 · raw file

  1. <script>
  2. $(".{{ tagManagerId }}").tagsManager({
  3. prefilled: $('#{{tagListId}}').attr('value').split(','),
  4. hiddenTagListName: '{{ tagListName }}',
  5. hiddenTagListId: '{{ tagListId }}',
  6. typeahead: true,
  7. typeaheadAjaxSource: "{{ ajaxPath }}?query=",
  8. });
  9. </script>