JS for Collapsible Categories always loaded

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

  1. AlexT

    AlexT Customer

    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.

    Cheers
     
    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

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

    AlexT Customer

    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