+2011-02-01 Ojan Vafai <ojan@chromium.org>
+
+ Reviewed by Adam Barth.
+
+ avoid jitter when loading the comments to a patch
+ https://bugs.webkit.org/show_bug.cgi?id=53570
+
+ * code-review.js:
+
2011-02-01 Ojan Vafai <ojan@chromium.org>
Reviewed by Mihai Parparita.
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
-<script src="code-review.js?version=31"></script>
+<script src="code-review.js?version=32"></script>
EOF
def self.revisionOrDescription(string)
});
}
- var help_text = 'Scroll though diffs with the "j" and "k" keys.';
if (comments.length == 0) {
- $('#message .commentStatus').text(help_text);
return;
}
descriptor = comments.length + ' comment';
if (comments.length > 1)
descriptor += 's';
- $('#message .commentStatus').text('This patch has ' + descriptor + '. Scroll through them with the "n" and "p" keys. ' + help_text);
+ $('.help').append(' This patch has ' + descriptor + '. Scroll through them with the "n" and "p" keys.');
}
function scanForStyleQueueComments(text) {
crawlDiff();
fetchHistory();
$(document.body).prepend('<div id="message">' +
- '<div class="help">Select line numbers to add a comment.' +
+ '<div class="help">Select line numbers to add a comment. Scroll though diffs with the "j" and "k" keys.' +
'<div class="DiffLinks LinkContainer">' + diffLinksHtml() + '</div>' +
'</div>' +
- '<div class="commentStatus"></div>' +
'</div>');
$(document.body).append('<div id="toolbar">' +
'<div class="overallComments">' +