Fix gallery tab was not selected by query parameter (references #147)

This commit is contained in:
Bernd Bestel
2019-03-05 18:04:16 +01:00
parent 816eb03147
commit 3a1c5efcfd

View File

@@ -26,7 +26,7 @@
$('#recipes-table tbody').removeClass("d-none"); $('#recipes-table tbody').removeClass("d-none");
recipesTables.columns.adjust().draw(); recipesTables.columns.adjust().draw();
if ((typeof tab !== "undefined" && tab === "gallery") || window.localStorage.getItem("recipes_last_tab_id") == "gallery-tab") if ((typeof GetUriParam("tab") !== "undefined" && GetUriParam("tab") === "gallery") || window.localStorage.getItem("recipes_last_tab_id") == "gallery-tab")
{ {
$(".nav-tabs a[href='#gallery']").tab("show"); $(".nav-tabs a[href='#gallery']").tab("show");
} }