Add support for "Show/Hide outdated"
Signed-off-by: Jonas Franz <info@jonasfranz.software>
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -762,6 +762,23 @@ function initRepository() {
|
||||
}
|
||||
|
||||
function initPullRequestReview() {
|
||||
$('.show-outdated').on('click', function (e) {
|
||||
e.preventDefault();
|
||||
var id = $(this).data('comment');
|
||||
$(this).addClass("hide");
|
||||
$("#code-comments-" + id).removeClass('hide');
|
||||
$("#code-preview-" + id).removeClass('hide');
|
||||
$("#hide-outdated-" + id).removeClass('hide');
|
||||
});
|
||||
|
||||
$('.hide-outdated').on('click', function (e) {
|
||||
e.preventDefault();
|
||||
var id = $(this).data('comment');
|
||||
$(this).addClass("hide");
|
||||
$("#code-comments-" + id).addClass('hide');
|
||||
$("#code-preview-" + id).addClass('hide');
|
||||
$("#show-outdated-" + id).removeClass('hide');
|
||||
});
|
||||
if ($('.repository.pull.diff').length == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -442,7 +442,7 @@ footer {
|
||||
}
|
||||
|
||||
.hide {
|
||||
display: none;
|
||||
display: none !important;
|
||||
}
|
||||
.center {
|
||||
text-align: center;
|
||||
|
||||
Reference in New Issue
Block a user