[splinter] Fix some places that should have been using preWrapLines
- From: Owen Taylor <otaylor src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [splinter] Fix some places that should have been using preWrapLines
- Date: Thu, 15 Oct 2009 17:11:38 +0000 (UTC)
commit b8cf70d8c2629723a0626dd871b6e69b9cd8c227
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Thu Oct 15 12:29:45 2009 -0400
Fix some places that should have been using preWrapLines
Comment intros were being improperly wrapped; also comments
being replied to.
js/splinter.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/splinter.js b/js/splinter.js
index d54fa00..92c3f5c 100644
--- a/js/splinter.js
+++ b/js/splinter.js
@@ -715,7 +715,7 @@ function appendReviewComment(comment, parentDiv) {
+ "</div>"
+ "</div>")
.addClass(getReviewerClass(inReplyTo.file.review))
- .find(".reviewer-box").text(inReplyTo.comment).end()
+ .find(".reviewer-box").preWrapLines(inReplyTo.comment).end()
.appendTo(commentDiv);
$("<div class='review-patch-comment-text'></div>")
@@ -894,7 +894,7 @@ function start(xml) {
.addClass(getReviewerClass(review))
.find(".reviewer").text(review.who).end()
.find(".review-date").text(Utils.formatDate(review.date)).end()
- .find(".review-intro").text(review.intro? review.intro : "").end()
+ .find(".review-intro").preWrapLines(review.intro? review.intro : "").end()
.appendTo("#oldReviews");
$("#oldReviews").show();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]