Forum: Fix idiotic multi-quote view (+sample fix)
#3
(04-10-2018, 03:46 PM)askmike Wrote: Great idea. Done!

Awesome, thanks. Smile

Edit: You suck Smile
...and implemented the code badly:

Code:
bodies.each(function(){
    var  = $(this),
    quotes = .find('blockquote');
    
    if( quotes.length > 1 ){
      quotes.first().append('<a href="#" class="postbit_quote bradius btn" onclick="this.parentNode.classList.toggle(\'on\');return false;"><span>Expand Quotes ('+ (quotes.length-1) +')</span></a>');
    }
  })

Somehow you managed to remove the correct var $t = $(this) --and-- quotes = $t.find...
  Reply


Messages In This Thread
RE: Forum: Fix idiotic multi-quote view (+sample fix) - by tommiehansen - 04-10-2018, 06:44 PM

Forum Jump:


Users browsing this thread: