Thread:Extension talk:CategoryTree/Fix to make CategoryTree working in sidebar again with MW 1.24.1 and Vector skin/reply (2)

David,

you are absolutely right, for some weird reason I missed to add two really important changes...

Generally speaking, you want to replace any use of the term $content.find by a single $, which refers to the whole DOM from my understanding. This needs to happen two time in the ext.categoryTree.js:

function showToggles { $content.find( 'span.CategoryTreeToggle' ).css( 'display', 'inline' ); }

needs to be modified to look like this:

function showToggles { $( 'span.CategoryTreeToggle' ).css( 'display', 'inline' ); }

and

// Register click events and show toggle buttons $content.find( '.CategoryTreeToggle' ).click( handleNode ); showToggles;

needs to be modified to look like this:

// Register click events and show toggle buttons $( '.CategoryTreeToggle' ).click( handleNode ); showToggles;

So there is absolutely no need to search or build another $content var, obviously you can work on the whole DOM like the skin sample does.

PS: There is absolutely no need to excuse for making my post usable to you and others by doing whatever is required...