Skip to content
Snippets Groups Projects
Commit 4157456a authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Masonry wird nur noch aufgreufen, wenn der Bildertab angezeigt wird

parent c8cf364c
No related branches found
No related tags found
2 merge requests!479Masonry wird nur noch aufgreufen, wenn der Bildertab angezeigt wird,!475Development
$(document).ready(function() {
getDocumentReadyForUse();
getDocumentReadyForUse($("#foki > li.active > a").attr("aria-controls"));
});
function tabs() {
......@@ -18,17 +18,18 @@ function tabs() {
$("#" + fokus + "TabSelector").attr("data-loaded", "1");
$("#" + fokus).html(data);
$("input[name=focus]").val($("#foki li.active a").attr("aria-controls"));
getDocumentReadyForUse();
getDocumentReadyForUse(fokus);
});
} else {
getDocumentReadyForUse(fokus);
}
getDocumentReadyForUse();
});
}
function getDocumentReadyForUse() {
function getDocumentReadyForUse(fokus = "") {
clickLog();
popovers();
imageLoader();
if (fokus === "bilder") imageLoader();
//pagination();
tabs();
theme();
......@@ -113,6 +114,7 @@ function paginationHandler() {
}
function imageLoader() {
console.log("bilder");
if (typeof $("#container").masonry == "undefined") {
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment