04-10-2018, 06:44 PM
(This post was last modified: 04-10-2018, 06:58 PM by tommiehansen.)
(04-10-2018, 03:46 PM)askmike Wrote: Great idea. Done!
Awesome, thanks.
Edit: You suck
...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...