[mobile] fix comments

This commit is contained in:
JuliaSvinareva 2020-05-08 14:39:15 +03:00
parent 8e2b6c270f
commit ea5fcd1027

View file

@ -152,12 +152,14 @@ define([
//Comments //Comments
sliceQuote: function(text) { sliceQuote: function(text) {
var sliced = text.slice(0,100); if (text) {
if (sliced.length < text.length) { var sliced = text.slice(0, 100);
sliced += '...'; if (sliced.length < text.length) {
return sliced; sliced += '...';
return sliced;
}
return text;
} }
return text;
}, },
renderViewComments: function(comments, indCurComment) { renderViewComments: function(comments, indCurComment) {
@ -318,7 +320,7 @@ define([
'<div class="user-name">' + name + '</div>' + '<div class="user-name">' + name + '</div>' +
'<div class="comment-date">' + date + '</div>' + '<div class="comment-date">' + date + '</div>' +
(isAndroid ? '</div></div>' : '') + (isAndroid ? '</div></div>' : '') +
'<div><textarea class="reply-textarea">' + '</textarea></div>' + '<div><textarea class="reply-textarea" placeholder="' + this.textAddReply + '">' + '</textarea></div>' +
'</div>'; '</div>';
$pageAdd.html(_.template(template)); $pageAdd.html(_.template(template));
}, },