Merge "Don't hide Zuul CI comments"
This commit is contained in:
commit
0fc17feb9f
@ -356,7 +356,7 @@ var ci_toggle_visibility = function(comments, showOrHide) {
|
|||||||
comments = ci_parse_comments();
|
comments = ci_parse_comments();
|
||||||
}
|
}
|
||||||
$.each(comments, function(i, comment) {
|
$.each(comments, function(i, comment) {
|
||||||
if (comment.is_ci) {
|
if (comment.is_ci && !comment.is_trusted_ci) {
|
||||||
$(comment.ref).toggle(showOrHide);
|
$(comment.ref).toggle(showOrHide);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -537,7 +537,7 @@ window.onload = function() {
|
|||||||
input.id = "toggleci";
|
input.id = "toggleci";
|
||||||
input.type = "button";
|
input.type = "button";
|
||||||
input.className = "gwt-Button";
|
input.className = "gwt-Button";
|
||||||
input.value = "Toggle CI";
|
input.value = "Toggle Extra CI";
|
||||||
input.onclick = function () {
|
input.onclick = function () {
|
||||||
// Flip the cookie
|
// Flip the cookie
|
||||||
var showOrHide = 'true' == read_cookie('show-ci-comments');
|
var showOrHide = 'true' == read_cookie('show-ci-comments');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user