mirror of
https://github.com/grocy/grocy.git
synced 2025-08-18 11:27:03 +00:00
Fix gallery tab was not selected by query parameter (references #147)
This commit is contained in:
@@ -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");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user