mirror of
https://github.com/grocy/grocy.git
synced 2026-03-28 07:39:25 +01: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…
Reference in New Issue
Block a user