mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 01:32:38 +00:00
Fix gallery tab was not selected by query parameter (references #147)
This commit is contained in:
parent
816eb03147
commit
3a1c5efcfd
@ -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");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user