1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Collapsible Code Event Listeners

Discussion in 'XenForo Suggestions' started by Marcel, Aug 26, 2016.

  1. Marcel

    Marcel Active Member

    We have a few addons installed and it's getting a bit of a messy list having the code event listeners all in one view, especially as the listeners have the same names repeated under different addons.

    It would be nice to at least collapse the list by Addon name.

    Xon, NixFifty, JustinHawk and 2 others like this.
  2. Xon

    Xon Well-Known Member

    @Marcel you should see it when you've got ~100 add-ons installed and ~520 code event listeners.

    There is a reason that all my hinted listeners copy the hint into the description!
    Last edited: Aug 29, 2016
  3. Arty

    Arty Well-Known Member

    It can be done with simple template modification. Create admin template modification for code_event_listener_list

    <xen:require js="js/xenforo/filter_list.js" />
    Replace with:
    <xen:require js="js/xenforo/filter_list.js" />
    <script type="text/javascript">
    $(document).ready(function() {
        $('.FilterList .textHeading').click(function() {
            var $this = $(this),
                collapsed = $this.hasClass('collapsed'),
                $children = $this.toggleClass('collapsed').next().children();
            if (collapsed) {
            } else {
  4. Marcel

    Marcel Active Member

    That helps a little, thank you :)
    Although I do think it would also be really handy to have it collapsible by addon.
  5. Marcel

    Marcel Active Member

    250ish so far (although some of them are disabled). Still, it really does add up doesn't it?
    Xon likes this.

Share This Page