mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-13 09:04:06 -08:00
15 lines
445 B
JavaScript
15 lines
445 B
JavaScript
function init() {
|
|
$(".alert_header").click(function() {
|
|
var expanderIcon = $(this).find("i.icon-chevron-down");
|
|
if (expanderIcon.length !== 0) {
|
|
expanderIcon.removeClass("icon-chevron-down").addClass("icon-chevron-up");
|
|
} else {
|
|
var collapserIcon = $(this).find("i.icon-chevron-up");
|
|
collapserIcon.removeClass("icon-chevron-up").addClass("icon-chevron-down");
|
|
}
|
|
$(this).next().toggle();
|
|
});
|
|
}
|
|
|
|
$(init);
|