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

Merge branch '293-bildersuche-laggt-beim-tabwechsel' into 'development'

Masonry wird nur noch aufgreufen, wenn der Bildertab angezeigt wird

Closes #293

See merge request !479
parents c98f187f 3de53ef2
No related branches found
No related tags found
1 merge request!1365Resolve "Filter Options for MetaGer"
$(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