|
Post by Elli on Aug 16, 2019 11:46:35 GMT -7
Remove Empty Mini Profile Fields Removes custom Mini Profile fields if they're empty. Useful with custom layouts.
Bottom of Thread and Show Conversation Templates
<script> $(function() { // Remove empty Mini Profile fields function removeEmptyFields() { $('.mini-profile').each(function() { var $this = $(this); var $children = $this.children('div, span');
$children.each(function() { if ( !$.trim($this.html()).length ) { $this.remove(); } }); }); }
removeEmptyFields(); pb.events.on('afterSearch', removeEmptyFields); }); </script>
|
|