2013-06-13 14:10:05 +00:00
|
|
|
function init() {
|
2013-07-24 01:14:40 +00:00
|
|
|
$(".alert_header").click(function() {
|
|
|
|
var expanderIcon = $(this).find("i.icon-chevron-down");
|
2015-11-11 19:04:37 +00:00
|
|
|
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();
|
|
|
|
});
|
2018-03-01 15:26:36 +00:00
|
|
|
|
|
|
|
$(".filters button.show-annotations").click(function(e) {
|
|
|
|
const button = $(e.target);
|
|
|
|
const icon = $(e.target).children("i");
|
|
|
|
|
|
|
|
if (icon.hasClass("glyphicon-unchecked")) {
|
|
|
|
icon.removeClass("glyphicon-unchecked")
|
|
|
|
.addClass("glyphicon-check btn-primary");
|
|
|
|
button.addClass("is-checked");
|
|
|
|
|
|
|
|
$(".alert_annotations").show();
|
|
|
|
$(".alert_annotations_header").show();
|
|
|
|
} else if (icon.hasClass("glyphicon-check")) {
|
|
|
|
icon.removeClass("glyphicon-check btn-primary")
|
|
|
|
.addClass("glyphicon-unchecked");
|
|
|
|
button.removeClass("is-checked");
|
|
|
|
|
|
|
|
$(".alert_annotations").hide();
|
|
|
|
$(".alert_annotations_header").hide();
|
|
|
|
}
|
|
|
|
});
|
2013-06-13 14:10:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
$(init);
|