Commit 8ff548a0 authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

1278: Improve image handling esp. when not available

Task-Url: https://pm.winseda.de/issues/1278
parent 27d742bc
......@@ -140,9 +140,10 @@ CollectionEditor.prototype.clearData = function (endpointId, schemaId, hasAdditi
}
}
var dialog = bootbox.dialog({
bootbox.dialog({
title : __translator.translate("~eu.dariah.de.minfba.search.view.crawl.dialog.clear_data.head"),
message : __translator.translate("~eu.dariah.de.minfba.search.view.crawl.dialog.clear_data.body"),
size: 'large',
buttons : buttons
});
};
......
......@@ -44,6 +44,18 @@ ResultItem.prototype.resize = function() {
$(".collection-image span").css("font-size", Math.floor($(".collection-image").width()*0.07));
};
ResultItem.prototype.toggleCollapsed = function(button) {
var indicator = $(button).find(".fas");
if ($(button).next(".collapse").hasClass("show")) {
$(button).next(".collapse").removeClass("show");
$(indicator).addClass("fa-chevron-circle-down").removeClass("fa-chevron-circle-up");
} else {
$(button).next(".collapse").addClass("show");
$(indicator).addClass("fa-chevron-circle-up").removeClass("fa-chevron-circle-down");
}
};
ResultItem.prototype.showErrors = function(button) {
var indicator = $(button).find(".fas");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment