[mobile] fix comments
This commit is contained in:
parent
8e2b6c270f
commit
ea5fcd1027
|
@ -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));
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue