Make more-less js get dynamic-ui form description trim space
Now the more-less js get dynamic-ui form description with spaces, So the length is not the exactly length of the description. This patch trim the description space. Change-Id: I659ab1d60cb96a261ca9d7081888a4c6a587a252 Closes-Bug: #1594792
This commit is contained in:
parent
bddbf7d470
commit
978f0ed443
@ -10,7 +10,7 @@ $(function() {
|
||||
var lesstext = gettext("Show less");
|
||||
|
||||
$(modal).find('.more_dynamicui_description').each(function() {
|
||||
var content = $(this).html();
|
||||
var content = $.trim($(this).html());
|
||||
|
||||
if (content.length > showChar) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user