From 3a1c5efcfd98a4f42f88b388220c7e11d89c4319 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Tue, 5 Mar 2019 18:04:16 +0100 Subject: [PATCH] Fix gallery tab was not selected by query parameter (references #147) --- public/viewjs/recipes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/viewjs/recipes.js b/public/viewjs/recipes.js index 6383412c..d60e9066 100644 --- a/public/viewjs/recipes.js +++ b/public/viewjs/recipes.js @@ -26,7 +26,7 @@ $('#recipes-table tbody').removeClass("d-none"); 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"); }