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

Fixed 'Click to expand...' not being removed

Jon W

Well-known member
#1
Although this doesn't really affect anything (since there is sufficient CSS in place to hide the affected text), I noticed that there is some completely redundant code in the xenforo.js file:
Code:
            $(document).on('click', '.bbCodeQuote .quoteContainer .quoteExpand', function(e) {
                $(this).remove('quoteCut');
                $(this).closest('.quoteContainer').toggleClass('expanded');
            });
should be:
Code:
            $(document).on('click', '.bbCodeQuote .quoteContainer .quoteExpand', function(e) {
                $(this).closest('.quoteContainer').toggleClass('expanded');
                $(this).remove('.quoteCut');
            });
or simply:
Code:
            $(document).on('click', '.bbCodeQuote .quoteContainer .quoteExpand', function(e) {
                $(this).remove('quoteCut');
                $(this).closest('.quoteContainer').toggleClass('expanded');
            });
At the moment the second line of code does absolutely nothing.

Edit: just noticed that the remove line needs to come after the toggleClass line.
 
Last edited: