Commits (1)
......@@ -37,8 +37,21 @@ ResultItem.prototype.init = function() {
.append(__translator.translate("~eu.dariah.de.minfba.search.view.labels." + (this.iframe ? "export_dataset_to" : "download")))
.removeClass("hide");
$(function () { $('[data-toggle="tooltip"]').tooltip() });
this.initShowMoreButton();
};
ResultItem.prototype.initShowMoreButton = function() {
$('#collapseSecondaryInfo').on('hidden.bs.collapse', function () {
$('#btn-collapse-secondary-info i').attr("class", "fas fa-chevron-down");
});
$('#collapseSecondaryInfo').on('shown.bs.collapse', function () {
$('#btn-collapse-secondary-info i').attr("class", "fas fa-chevron-up");
});
}
ResultItem.prototype.toggleCollapsed = function(button) {
var indicator = $(button).find(".fas");
......