JS for Collapsible Categories always loaded

Discussion in 'Closed Reports' started by AlexT, Nov 11, 2014.

  1. AlexT

    AlexT Member

    No biggie, but if you have Collapsible Categories for the forum list enabled, then the JS code is injected on every page (for example when viewing a thread). That seems unnecessary as it is only there to collapse categories in the forum list.

    Russ and Steve like this.
  2. Steve

    Steve Designer

    Strange this wasn't noticed before by anyone. Thanks for reporting and this will be fixed for the next update in XenBase.

    If you want to fix it now

    In XenBase go to xb_js_head

    Copy Source
    <xen:if is="@xb_cat_collapse">
    Replace it with
    Copy Source
    <xen:if is="@xb_cat_collapse AND {$contentTemplate} == 'forum_list'">
  3. AlexT

    AlexT Member

    Thanks for the fix. I am not running XF just yet and currently preparing for the switch. Right now I am trying to understand all the ins and outs of your framework. ;)
    Russ likes this.
  4. Russ

    Russ Designer

    It's quite complicated :) let us know if you have any questions.
    AlexT likes this.
  5. Russ

    Russ Designer

    This has been fixed in our next version.

Let's work together on your next project

Contact us today to talk about how we can help you

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.