fix bug with truncating string

This commit is contained in:
mlorb 2018-06-11 14:47:25 +02:00
parent acd6efae57
commit 40f3365596

View file

@ -28,12 +28,12 @@ function truncateLongString( el, chars ) {
}
if ( html ) {
el.html(html.outerHTML + newText + '...' );
el.text(html.outerHTML + newText + '...' );
} else {
if($.type(el) === 'string'){
return newText + '...';
} else {
el.html(newText + '...' );
el.text(newText + '...' );
}
}
} else {