Fixed tags html on truncate text in collection description

This commit is contained in:
Fabiano Alencar 2018-11-26 16:22:38 -02:00
parent e32527aa78
commit 186c1b8ad1
2 changed files with 1 additions and 2 deletions

View File

@ -15,7 +15,7 @@
var minimized_elements = $( this ); var minimized_elements = $( this );
minimized_elements.each(function(){ minimized_elements.each(function(){
var t = $.trim(minimized_elements.text()); var t = minimized_elements.html();
if (t.length <= config.minChars) { return }; if (t.length <= config.minChars) { return };
$( this ).html( $( this ).html(

View File

@ -87,7 +87,6 @@ echo '</style>';
<div class="text-white t-collection--info-description-text tainacan-interface-truncate"> <div class="text-white t-collection--info-description-text tainacan-interface-truncate">
<?php tainacan_the_collection_description(); ?> <?php tainacan_the_collection_description(); ?>
<?php do_action( 'tainacan-interface-collection-description' ); ?> <?php do_action( 'tainacan-interface-collection-description' ); ?>
<a class="toggle" href="#"></a>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>