prometheus/web/ui/static/js/alerts.js

15 lines
445 B
JavaScript
Raw Normal View History

function init() {
2013-07-24 01:14:40 +00:00
$(".alert_header").click(function() {
var expanderIcon = $(this).find("i.icon-chevron-down");
if (expanderIcon.length !== 0) {
2013-07-24 01:14:40 +00:00
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);