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:
zhurong 2016-07-01 09:42:48 +00:00
parent bddbf7d470
commit 978f0ed443

View File

@ -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) {